1.2.3 • Published 3 years ago
gts-snapsync v1.2.3
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_modules
containing a modified version ofnode-pre-gyp-github
since the original does not work anymore.- Use latest version of
@octokit/rest
to work with Github API