audit-shelljs
Audit directory properties/content with ShellJS.
- Declare expectations with chaining. Stop at first failure.
refute
API for negating any expectation.- Call any
shelljs
method or use wrappers likehasFile()
.
Examples
README.md
exists, no line with console.log
under lib/
Expect: var audit = ;audit ; // Target directory refute; if audit // Expectations met else var rule = audit; console;
Expect: Symlink present/absent
Use _() to run any ShellJS method.
audit;auditrefute;
Expect: Custom rule
assert() and refute() receive an OuterShelljs instance, shelljs
.
audit; audit;
Installation
NPM
npm install audit-shelljs
API
License
MIT
Tests
npm test