Handy_Cao 6934691a7d 代码提交; 3 лет назад
..
LICENSE 6934691a7d 代码提交; 3 лет назад
README.md 6934691a7d 代码提交; 3 лет назад
index.js 6934691a7d 代码提交; 3 лет назад
package.json 6934691a7d 代码提交; 3 лет назад

README.md

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