assert-dir-equal

Assert that the contents of two directories are equal.

MIT 5 个版本
安装
npm install assert-dir-equal
yarn add assert-dir-equal
pnpm add assert-dir-equal
bun add assert-dir-equal
README

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

版本列表
1.1.0 2017-09-06
1.0.1 2014-03-09
1.0.0 2014-03-09
0.1.0 2014-02-06
0.0.1 2014-02-05