1.0.2 • Published 4 years ago
log-console-log v1.0.2
Console Log (Enable/Disable)
Enable and disable console logs by setting environment variable "log" as true or false.
Installation
Use the package manager NPM to install log-console-log.
npm install log-console-log
Enable Logs
process.env.log = true;
Disable Logs
process.env.log = false;
Usage
process.env.log = true;
var print = require('log-console-log');
print.log("What you want to print, could be object or string whatever you want")