Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/kellyselden/fs-equal
Check if files and folders are identical
https://github.com/kellyselden/fs-equal
Last synced: 16 days ago
JSON representation
Check if files and folders are identical
- Host: GitHub
- URL: https://github.com/kellyselden/fs-equal
- Owner: kellyselden
- License: mit
- Created: 2016-01-10T23:42:52.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2020-05-23T12:06:36.000Z (over 4 years ago)
- Last Synced: 2024-04-25T11:02:48.647Z (9 months ago)
- Language: JavaScript
- Homepage:
- Size: 80.1 KB
- Stars: 3
- Watchers: 3
- Forks: 0
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# fs-equal
[![Build Status](https://travis-ci.org/kellyselden/fs-equal.svg?branch=master)](https://travis-ci.org/kellyselden/fs-equal)
[![Build status](https://ci.appveyor.com/api/projects/status/p1uehl4qou9m47wl/branch/master?svg=true)](https://ci.appveyor.com/project/kellyselden/fs-equal/branch/master)
[![Code Climate](https://codeclimate.com/github/kellyselden/fs-equal/badges/gpa.svg)](https://codeclimate.com/github/kellyselden/fs-equal)
[![Coverage Status](https://coveralls.io/repos/kellyselden/fs-equal/badge.svg?branch=master&service=github)](https://coveralls.io/github/kellyselden/fs-equal?branch=master)[![Greenkeeper badge](https://badges.greenkeeper.io/kellyselden/fs-equal.svg)](https://greenkeeper.io/)
[![npm version](https://badge.fury.io/js/fs-equal.svg)](https://badge.fury.io/js/fs-equal)
[![dependencies Status](https://david-dm.org/kellyselden/fs-equal/status.svg)](https://david-dm.org/kellyselden/fs-equal)
[![devDependencies Status](https://david-dm.org/kellyselden/fs-equal/dev-status.svg)](https://david-dm.org/kellyselden/fs-equal?type=dev)Check if files and folders are identical
### Installation
```sh
npm install fs-equal --save
```### Usage
```js
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);
});
```