stop-console

1.0.1 • Public • Published

stop-console

stop-console on npm

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 !"

Readme

Keywords

Package Sidebar

Install

npm i stop-console

Weekly Downloads

1

Version

1.0.1

License

ISC

Unpacked Size

1.93 kB

Total Files

4

Last publish

Collaborators

  • zougataga