env-console-logs
TypeScript icon, indicating that this package has built-in type declarations

1.0.6 • Public • Published

env-console-log

Apply logs to your node app based on environment flags

Get Started

Install package from npm: npm i env-console-logs

It uses dotenv package as dependency, so create/update .env file and update it as shown below

    enable_console_logs=true

And get the function from here

const { consoleLog } = require('env-console-logs');

consoleLog("Hello World!");

To disable it on production, just enable_console_logs=false or anything but not true

/env-console-logs/

    Package Sidebar

    Install

    npm i env-console-logs

    Weekly Downloads

    0

    Version

    1.0.6

    License

    ISC

    Unpacked Size

    5.37 kB

    Total Files

    6

    Last publish

    Collaborators

    • raviagheda