Licence
MIT
Version
1.2.3
Deps
2
Size
9 kB
Vulns
0
Weekly
0
Install scriptsThis package runs scripts during installation (preinstall/install/postinstall)
gts-snapsync
An excellent library and toolset for optimized transfers of single files and directory snapshots based on librsync.
Installation
Install the gts-snapsync module via
npm install gts-snapsync --save
or
yarn add gts-snapsync
See the original documentation at https://github.com/core-process/snapsync
This fork added async features to all the functions of snapsync.
Just add a callback function as the last parameter, for example:
Sync:
snapsync.snap.create('dir', 'file');
Async:
snapsync.snap.create('dir', 'file', (error) => {
if (error) { console.log(error) }
});
// or
await snapsync.snap.asyncCreate('dir','file');
Changelog
v1.2.2
- Added support for Node 12+
- Dropped support for Node < 8
- Added
custom_modulescontaining a modified version ofnode-pre-gyp-githubsince the original does not work anymore.- Use latest version of
@octokit/restto work with Github API