1.0.1 • Published 7 years ago

cs-recursive-sync v1.0.1

Weekly downloads
3
License
MIT
Repository
github
Last release
7 years ago

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 });