cs-recursive-sync
v1.0.1
Published
A recursive synchronization algorithm written in Node JS. Very helpful for backing up hard-drives!
Downloads
2
Readme
Synopsis
Need an easy way to programatically sync 2 folders in javascript? Let cs-recursive-sync do the hard-lifting for you! Simply pass in the source folder and the sync folder as parameters and our algorithm will do the rest.
##Requirements
Before building this project you will need the following resources:
- npm
Installation
npm install cs-recursive-sync --save
Usage
There are 2 functions exposed in this module, 'beginSync' and 'compare'. Both functions return promises.
Syncronize Directories
var sync = require('cs-recursive-sync');
sync.beginSync(source_dir_path, sync_dir_path)
.then((rslt) => { //do something else });
Compare Directories
var sync = require('cs-recursive-sync');
sync.compareDirectories(source_dir_path, sync_dir_path)
.then((rslt) => { //do something else });