Politely tells one or more streams to shut the heck up for a moment by temporarily reassigning their write methods. Useful when testing noisey modules which lack verbosity options. Mutes
stderr by default.
$ npm install --save mute
var mute = ;// Mute stdout and stderrvar unmute = ;console; // doesn't print 'foo'console; // doesn't print 'bar';console; // prints 'foo'console; // prints 'bar'// Mute just stderrvar unmuteErr = ;console; // prints 'foo'console; // doesn't print 'bar';console; // prints 'foo'console; // prints 'bar'
Accepts one or more streams or arrays of streams, mutes them all, and returns a function to unmute them.
$ npm test
Standards for this project, including tests, code coverage, and semantics are enforced with a build tool. Pull requests must include passing tests with 100% code coverage and no linting errors.
© 2015 Shannon Moeller email@example.com
Licensed under MIT