hide-console

1.0.3 • Public • Published

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

Readme

Keywords

none

Package Sidebar

Install

npm i hide-console

Weekly Downloads

27

Version

1.0.3

License

ISC

Unpacked Size

1.39 kB

Total Files

3

Last publish

Collaborators

  • sachie026