Security News
Input Validation Vulnerabilities Dominate MITRE's 2024 CWE Top 25 List
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
bem-site-snapshot-master
Advanced tools
Tools for suitable snapshot manipulation
At first you should install npm package by:
$ npm install --save bem-site-snapshot-master
2 different strategies can be used via this package:
Both strategies have the same API.
You should create instance of snapshot master API class before using its methods.
var API = require('bem-site-snapshot-master').Simple,
api = new API(options);
// here you can call instance methods of API class
api.getSnapshots(function (err) {
// TODO implement your handler
});
options
- is object with available fields:
path
- full path to operation folder. (required).symlinks
- array with available symlink names (required).logger
- settings for logger module. See Logger for more details.For YDisk API also yandex-disk
options section needed:
'yandex-disk': {
user: 'john.smith',
password: '12345678',
namespace: 'test'
}
Returns list of snapshot folder names.
Arguments:
callback
functionReturns name of snapshot which given symlink is pointed to
Arguments:
symlink
- name of symlinkcallback
functionRetrieves data of snapshot which given symlink is pointed to and pipes it to destination stream
Arguments:
symlink
- name of symlinkdestination
- destination streamcallback
functionReads content of data.json file of given snapshot
Arguments:
snapshot
- name of given snapshotcallback
functionSwitch symlink to folder with given snapshot name
Arguments:
symlink
- name of symlinksnapshot
- name of given snapshotcallback
functionRemoves snapshot by given snapshot name
Arguments:
snapshot
- name of given snapshotcallback
functionRun tests:
npm run mocha
Run tests with istanbul coverage calculation:
npm run istanbul
Run codestyle verification (jshint and jscs)
npm run codestyle
Maintainer @tormozz48 Please send your questions and proposals to: tormozz48@gmail.com
FAQs
Tools for suitable snapshot manipulation
The npm package bem-site-snapshot-master receives a total of 0 weekly downloads. As such, bem-site-snapshot-master popularity was classified as not popular.
We found that bem-site-snapshot-master demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.
Research
Security News
A threat actor's playbook for exploiting the npm ecosystem was exposed on the dark web, detailing how to build a blockchain-powered botnet.