Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
test pieces of the file system for equality
JavaScript
Branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
test
.gitignore
License
Makefile
Readme.md
assert.js
index.js
package.json

Readme.md

fs-equals

test pieces of the file system for equality

Getting Started

With npm

$ npm install fs-equals --save

then in your app:

var equals = require('fs-equals')
var assert = require('fs-equals/assert')

API

Each function is available as either an assertion or boolean predicate test. If your using this module in a test suite you probably want the assertion version since it will provide more useful information about failures

equals(apath:String, bpath:String)

compare whatever happens to be at either path. The result is returned as a Result

dirs(apath:String, bpath:String)

test the contents of two directories for equality

files(apath:String, bpath:String)

test the contents of two files for equality

examples

see the tests

Running the tests

$ npm install
$ make test
Something went wrong with that request. Please try again.