dircmp

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

npm install dircmp
1 downloads in the last week
4 downloads in the last month

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
npm loves you