mute-stdout
Mute and unmute stdout.
Last updated 2 years ago by phated .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install mute-stdout 
SYNC missed versions from official npm registry.

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

Current Tags

  • 1.0.1                                ...           latest (2 years ago)

3 Versions

  • 1.0.1                                ...           2 years ago
  • 1.0.0                                ...           5 years ago
  • 0.1.0                                ...           5 years ago
Downloads
Today 165
This Week 4,382
This Month 42,875
Last Day 2,138
Last Week 12,236
Last Month 58,811
Dependencies (0)
None
Dev Dependencies (6)

Copyright 2014 - 2016 © taobao.org |