0.1.3 • Published 11 years ago
audit-shelljs v0.1.3
audit-shelljs
Audit directory properties/content with ShellJS.
- Declare expectations with chaining. Stop at first failure.
- Use any ShellJS method.
- Convenience wrappers.
Example
var audit = new auditShelljs.create();
audit
.set('dir', '/path/to/dir'); // Target directory
.hasFile('README.md')
.refute.grep('console.log', 'lib/**/*.js');
if (audit.pass()) {
// Expectations met
} else {
// Inspect audit.last()
}
Installation
NPM
npm install audit-shelljs
API Documentation
License
MIT
Tests
npm test