#log-suppress
A little tool that intercepts console.log output. Ideal for keeping tests output clean.
Especially handy for automated tests so that debug statements don't appear in the middle of test output.
npm install log-suppress --save
Log-Suppress takes the current console and optional environment
require("log-suppress").init(console);
Or for a specific environment
process.env.NODE_ENV = 'test'
require("log-suppress").init(console, 'test');
Using LogSuppress with other console loggers
require('console-ten').init(console);
require("log-suppress").init(console, 'test')
If you are planning to fork this repo and continue developing it then here's some info.
Run the bash tests
make test
This package used travis to perform automated builds (see that build graphic at the top)