stop-console
v1.0.1
Published
Simple npm module to prevent displaying something with console
Downloads
2
Readme
stop-console
Installation
npm i stop-console
Example
Support all functions in "console"
const StopConsole = require("stop-console");
const stopper = new StopConsole({ message: "Console off !" });
stopper.enable();
console.log("Hello world!");
// -> "Console off !"
stopper.disable();
console.log("Hey !");
// -> "Hey !"
stopper.enable();
console.error("TEST")
// -> "Console off !"