assert-dir-equal

1.1.0 • Public • Published

assert-dir-equal

Assert that the contents of two directories are equal.

Installation

$ npm install assert-dir-equal

Example

var assert = require('assert-dir-equal');
 
// doesn't throw
assert('path/to/actual', 'path/to/expected');
 
// throws
assert('path/to/actual', 'path/to/not-identical');

Files starting with a dot are ignored by default, so they do not contribute to the equality check. This can be altered with filter option:

// check *all* files, including hidden ones
assert('path/to/actual', 'path/to/expected', {filter: () => true});

License

MIT

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.1.0
    548
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.1.0
    548
  • 1.0.1
    8
  • 1.0.0
    0
  • 0.1.0
    3
  • 0.0.1
    4

Package Sidebar

Install

npm i assert-dir-equal

Weekly Downloads

480

Version

1.1.0

License

MIT

Last publish

Collaborators

  • ianstormtaylor