mute-stdout

2.0.0 • Public • Published

mute-stdout

NPM version Downloads Build Status Coveralls 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

Package Sidebar

Install

npm i mute-stdout

Weekly Downloads

1,091,087

Version

2.0.0

License

MIT

Unpacked Size

3.74 kB

Total Files

4

Last publish

Collaborators

  • phated
  • yocontra