{"name":"mute-stream","version":"0.0.6","keywords":["mute","stream","pipe"],"author":{"url":"http://blog.izs.me/","name":"Isaac Z. Schlueter","email":"i@izs.me"},"license":"ISC","_id":"mute-stream@0.0.6","maintainers":[{"name":"isaacs","email":"i@izs.me"}],"homepage":"https://github.com/isaacs/mute-stream#readme","bugs":{"url":"https://github.com/isaacs/mute-stream/issues"},"dist":{"shasum":"48962b19e169fd1dfc240b3f1e7317627bbc47db","tarball":"http://registry-npm.ywwl.com/mute-stream/download/mute-stream-0.0.6.tgz","integrity":"sha512-m0kBTDLF/0lgzCsPVmJSKM5xkLNX7ZAB0Q+n2DP37JMIRPVC2R4c3BdO6x++bXFKftbhvSfKgwxAexME+BRDRw==","signatures":[{"sig":"MEYCIQDvYfzj0Zn0fxO+bIEloyXJ17bIFm2zNLeIhEvUtEr8kAIhAJ2TJIGxyF9jpbiwvlkkO00yxg07jOy1dFVr4gpJG1+X","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"size":3561,"noattachment":false,"key":"/mute-stream/-/mute-stream-0.0.6.tgz"},"main":"mute.js","_from":".","_shasum":"48962b19e169fd1dfc240b3f1e7317627bbc47db","gitHead":"3c0b793839b923b8d8a86a3d07f70fa451e30348","scripts":{"test":"tap test/*.js"},"_npmUser":{"name":"isaacs","email":"i@izs.me"},"repository":{"url":"git://github.com/isaacs/mute-stream.git","type":"git"},"_npmVersion":"3.7.0","description":"Bytes go in, but they don't come out (when muted).","directories":{"test":"test"},"_nodeVersion":"5.6.0","devDependencies":{"tap":"^1.2.0"},"_npmOperationalInternal":{"tmp":"tmp/mute-stream-0.0.6.tgz_1455343284080_0.04852168820798397","host":"packages-9-west.internal.npmjs.com"},"readme":"# mute-stream\n\nBytes go in, but they don't come out (when muted).\n\nThis is a basic pass-through stream, but when muted, the bytes are\nsilently dropped, rather than being passed through.\n\n## Usage\n\n```javascript\nconst MuteStream = require('mute-stream')\n\nconst ms = new MuteStream(options)\n\nms.pipe(process.stdout)\nms.write('foo') // writes 'foo' to stdout\nms.mute()\nms.write('bar') // does not write 'bar'\nms.unmute()\nms.write('baz') // writes 'baz' to stdout\n\n// can also be used to mute incoming data\nconst ms = new MuteStream\ninput.pipe(ms)\n\nms.on('data', function (c) {\n  console.log('data: ' + c)\n})\n\ninput.emit('data', 'foo') // logs 'foo'\nms.mute()\ninput.emit('data', 'bar') // does not log 'bar'\nms.unmute()\ninput.emit('data', 'baz') // logs 'baz'\n```\n\n## Options\n\nAll options are optional.\n\n* `replace` Set to a string to replace each character with the\n  specified string when muted.  (So you can show `****` instead of the\n  password, for example.)\n\n* `prompt` If you are using a replacement char, and also using a\n  prompt with a readline stream (as for a `Password: *****` input),\n  then specify what the prompt is so that backspace will work\n  properly.  Otherwise, pressing backspace will overwrite the prompt\n  with the replacement character, which is weird.\n\n## ms.mute()\n\nSet `muted` to `true`.  Turns `.write()` into a no-op.\n\n## ms.unmute()\n\nSet `muted` to `false`\n\n## ms.isTTY\n\nTrue if the pipe destination is a TTY, or if the incoming pipe source is\na TTY.\n\n## Other stream methods...\n\nThe other standard readable and writable stream methods are all\navailable.  The MuteStream object acts as a facade to its pipe source\nand destination.\n","publish_time":1455343285846,"_cnpm_publish_time":1455343285846,"dist-tags":{"latest":"4.0.0"}}