Skip to content

iAmServer/no-log

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

no-log iAmServer - no-log Rate this package

Remove all the Window.console in production, which prevents logging of information to the browser's console.

Installation

npm install --save @iamserver/no-log

Importing

import noLog from "@iamserver/no-log"; // ES6
const noLog = require("@iamserver/no-log"); // ES5 with npm

Usage

import noLog from "@iamserver/no-log";

const status = true || "production"; // production

noLog(status);