doc/node_modules/mute-stdout
2021-05-05 15:50:12 +02:00
..
index.js Move content to repo root 2021-05-05 15:50:12 +02:00
LICENSE Move content to repo root 2021-05-05 15:50:12 +02:00
package.json Move content to repo root 2021-05-05 15:50:12 +02:00
README.md Move content to repo root 2021-05-05 15:50:12 +02:00

mute-stdout

NPM version Downloads Travis Build Status AppVeyor Build Status Coveralls Status Gitter chat

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