New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

express-suppress-console-log

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

express-suppress-console-log

Small library for supress console.log() outputs in different environments

  • 1.0.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
0
decreased by-100%
Maintainers
1
Weekly downloads
 
Created
Source

express-suppress-console-log

Build Status

Simple lib for suppressing console.log outputs in your ExpressJS and other apps based on passed environments rules. Main idea is to flexible suppress console outputs in different environments. For example, you have some logging in your app, and don't want to delete or wrap every of this in check for current environment, then you can just require this lib and pass rules for every environment.

Installation

npm install express-suppress-console-log --save

or

yarn add express-suppress-console-log

Usage

Require library in top of your app.js file (or other entry point of your app) and pass environment rules.

const envs = {
  "production": {
    "disabled": true
  },
  "development": {
    "disabled": false
  },
  "staging": {
    "disabled": false
  }
}

require("express-suppress-console-log")(envs)

Tests

npm test

Keywords

FAQs

Package last updated on 14 Apr 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc