Check if files and folders are identical
npm install fs-equal --save
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);
});