fs-equal
v2.0.1
Published
Check if files and folders are identical
Downloads
33
Maintainers
Readme
fs-equal
Check if files and folders are identical
Installation
npm install fs-equal --save
Usage
import { areFilesEqual, areDirsEqual } from 'fs-equal';
areFilesEqual('file1', 'file2').then(areEqual => {
console.log(areEqual);
});
areDirsEqual('dir1', 'dir2', {
// optional
filter(fullPath) {
return fullPath !== 'some/path';
}
}).then(areEqual => {
console.log(areEqual);
});