Share your code. npm Orgs help your team discover, share, and reuse code. Create a free org »

mute-stdout

1.0.0 • Public • Published

mute-stdout

Travis Build Status

Mute and unmute stdout

Usage

var stdout = require('mute-stdout');
 
stdout.mute();
 
console.log('will not print');
 
stdout.unmute();
 
console.log('will print');

API

mute()

Mutes the process.stdout stream by replacing the write method with a no-op function.

unmute()

Unmutes the process.stdout stream by restoring the original write method.

License

MIT

install

npm i mute-stdout

Downloadsweekly downloads

176,800

version

1.0.0

license

MIT

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar