1.0.3 • Published 5 years ago

hide-console v1.0.3

Weekly downloads
1
License
ISC
Repository
-
Last release
5 years ago

hide-console

A NPM package which lets user override and hide the console methods

Installation:

npm install hide-console
or 
yarn add hide-console

Usage for React app:

import initHideConsole from "hide-console";
initHideConsole(<["log", ...]>)

You have to pass all the functions which needs to be overriden and hide console messages for

Examples:

  1. To hide log console messages
initHideConsole(["log"])
  1. To hide log, error, warn console messages
initHideConsole(["log", "error", "warn"])
  1. To hide error, warn console messages
initHideConsole(["error", "warn"])

Usage as JavaScript library

Download hide-console.min.js and include it as a script file inside your application and call initHideConsole() as shown in above examples

1.0.3

5 years ago

1.0.2

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago