mute-stdout

    1.0.1 • Public • Published

    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

    Install

    npm i mute-stdout

    DownloadsWeekly Downloads

    1,057,570

    Version

    1.0.1

    License

    MIT

    Unpacked Size

    3.96 kB

    Total Files

    4

    Last publish

    Collaborators

    • avatar
    • avatar
    • avatar