JSPM

mutelogs.js

1.6.1
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 5
  • Score
    100M100P100Q28251F
  • License MIT

A quick easy way to mute all console.* messages

Package Exports

  • mutelogs.js

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (mutelogs.js) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

Mutelogs.js

dependencies

A simple/fast/easy no-dependency way to reversibly mute all the console.* methods from any JavaScript project. The advantage to this approach is that logs can simply be hidden behind a feature flag.

Works with Node and the browser.

Install

npm install mutelogs

Usage

Node
var mutelogs = require('mutelogs')
mutelogs.mute()
// or
mutelogs.unmute()
Browser
mutelogs.mute()
// or 
mutelogs.unmute()

Testing

npm run test

License

MIT