Skip to content

kellyselden/fs-equal

Repository files navigation

fs-equal

Build Status Build status Code Climate Coverage Status

Greenkeeper badge npm version dependencies Status devDependencies Status

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);
});

About

Check if files and folders are identical

Resources

License

Stars

Watchers

Forks

Packages

No packages published