- simplify this module to serve only comparsion function
- some API naming
- change to new API
- can handle variable argument
- take glob string or Stream as input
- remove checksum function and focuse on files comparsion
- change from callback-style to promise
- support multi arguments
- rewrite in ES6
-
remove file validation, handle the exceptions yourself
- checksumSync() and compareSync(): throw exception when file not exists
- checksum() and compare(): get err in callback function
-
remove dependency: lodash
- quick fix for missing callback check
- add support for massive file comparsion (async version)
- improve async performance
- prevent callback undefined
npm install fcmp
var fcmp = require('fcmp');
fcmp('/test/file/**/*.png', '/test/file2/a.png', pngReadStream)
.then(function(equal) {...})
// result is Boolean shows whether these files have the same content.
npm test