syncr
syncr helps you deal with the details of remote file synchronization
Installation
npm install syncr
Usage
var syncr = ; syncr;
methods
sync.create_manifest(path, opts, callback)
Creates a manifest object from the path given.
options
- all (Boolean, default false): Include all files (same as ls -a).
- aboslute_path (Boolean, default false): Use absolute paths in files hash.
- ignore (String or Array): Patterns to apply to files and directories to filter them out (uses minimatch).
- ignorefile (String): Path to the ignore file. This is the same as a .gitignore file.
sync.compute_delta(from_manifest, to_manifest)
Creates a delta object that specifies the steps needed to be taken to transform
from_manifest
to to_manifest
.
License
Copyright (c) 2013 Matt Insler
Licensed under the MIT license.