fs-equals

0.2.6 • Public • Published

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

Readme

Keywords

none

Package Sidebar

Install

npm i fs-equals

Weekly Downloads

0

Version

0.2.6

License

none

Last publish

Collaborators

  • jkroso