shhh
Allows temporarily disabling console output, for instance when used with noisy unit tests.
While you can disable logging in production with this it's recommend to use a library specifically designed for that purpose. For instance for node check out Winston
Installation
npm install --save shhh
Usage
const shhh = ; console;shhh;console;console;console;console; // nothing shows up here eithershhh;console;
Usage in mocha tests
dummyMath.js
moduleexports { console; console; const result = val1 + val2; console; return result;}
test.js
const shhh = ;const dummyMath = ;
Tests
npm run test
Run test coverage
npm run cover