package
Mute and unmute stdout.
npm install mute-stdoutGitHub-flavored package documentation.
Across all versions.
Download trend unavailable.
Runtime metadata.
Tagged topics.
Estimated unpacked size across 1 packages.
3.7 kB
Includes dependencies.
Mute and unmute stdout.
var stdout = require('mute-stdout');
stdout.mute();
console.log('will not print');
stdout.unmute();
console.log('will print');Mutes the process.stdout stream by replacing the write method with a no-op function.
Unmutes the process.stdout stream by restoring the original write method.
MIT
yocontra
yo@contra.io