audit-shelljs

Audit directory properties/content with ShellJS

audit-shelljs

Audit directory properties/content with ShellJS.

  • Declare expectations with chaining. Stop at first failure.
  • Use any ShellJS method.
  • Convenience wrappers.

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() 
}

NPM

npm install audit-shelljs

AuditShelljs

MIT

npm test