Files
2025-07-08 14:47:27 +02:00
..
2022-01-21 09:28:41 +01:00
2025-07-08 14:47:27 +02:00
2025-07-08 14:47:27 +02:00

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