dircmp

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

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
// comparison 
dircmp.cmp('/home/betty', '/home/bill', function(errareEqual) {
  if (areEqual) {
    console.log('Wow - very compatible');
  } else {
    console.log('Opposites attract?');
  };
});
 
// hash 
dircmp.hash('/home/chuck', function(errdigest) {
  console.log('hex digest: ' + digest);
});
git clone https://github.com/jdubie/dircmp.git
cd dircmp
npm install
make test