Compare directories
CoffeeScript
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
src
test
.gitignore
Cakefile
LICENSE
README.md
package.json

README.md

dircmp

dircmp is a utility modules which allows comparison of directories by creating hash unique to the files and links contained and their locations.

Install

npm install dircmp

Quick Examples

// comparison
dircmp.cmp('/home/betty', '/home/bill', function(err, areEqual) {
  if (areEqual) {
    console.log('Wow - very compatible');
  } else {
    console.log('Opposites attract?');
  };
});

// hash
dircmp.hash('/home/chuck', function(err, digest) {
  console.log('hex digest: ' + digest);
});

Test

git clone https://github.com/jdubie/dircmp.git
cd dircmp
npm install
make test