mute-stdout

Mute and unmute stdout.

MIT 4 个版本
安装
npm install mute-stdout
yarn add mute-stdout
pnpm add mute-stdout
bun add mute-stdout
README

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

版本列表
2.0.0 2021-11-22
1.0.1 2018-08-18
1.0.0 2015-11-18
0.1.0 2015-08-21