1.6.1 • Published 7 years ago

mutelogs.js v1.6.1

Weekly downloads
1
License
MIT
Repository
github
Last release
7 years ago

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

1.6.1

7 years ago

1.6.0

7 years ago

1.5.0

7 years ago

1.0.0

7 years ago