{"_id":"mute-stream","_rev":"4122703","name":"mute-stream","description":"Bytes go in, but they don't come out (when muted).","dist-tags":{"latest":"3.0.0"},"maintainers":[{"name":"gar","email":""},{"name":"npm-cli-ops","email":""},{"name":"owlstronaut","email":""},{"name":"reggi","email":""},{"name":"saquibkhan","email":""}],"time":{"modified":"2026-02-24T19:25:53.000Z","created":"2012-07-24T01:27:22.992Z","3.0.0":"2025-10-22T15:27:56.606Z","2.0.0":"2024-09-24T19:12:06.702Z","1.0.0":"2022-12-13T05:35:23.814Z","0.0.8":"2018-12-28T05:23:49.143Z","0.0.7":"2017-01-03T22:47:53.781Z","0.0.6":"2016-02-13T06:01:25.846Z","0.0.5":"2015-05-20T07:11:56.592Z","0.0.4":"2013-07-15T01:15:17.730Z","0.0.3":"2012-08-15T05:16:15.116Z","0.0.2":"2012-07-24T22:21:44.924Z","0.0.1":"2012-07-24T01:27:22.992Z"},"users":{"fgribreau":true,"sqrtthree":true},"author":{"name":"GitHub Inc."},"repository":{"type":"git","url":"git+https://github.com/npm/mute-stream.git"},"versions":{"3.0.0":{"name":"mute-stream","version":"3.0.0","main":"lib/index.js","devDependencies":{"@npmcli/eslint-config":"^5.0.0","@npmcli/template-oss":"4.27.1","tap":"^16.3.0"},"scripts":{"test":"tap","lint":"npm run eslint","postlint":"template-oss-check","template-oss-apply":"template-oss-apply --force","lintfix":"npm run eslint -- --fix","snap":"tap","posttest":"npm run lint","eslint":"eslint \"**/*.{js,cjs,ts,mjs,jsx,tsx}\""},"repository":{"type":"git","url":"git+https://github.com/npm/mute-stream.git"},"keywords":["mute","stream","pipe"],"author":{"name":"GitHub Inc."},"license":"ISC","description":"Bytes go in, but they don't come out (when muted).","tap":{"statements":70,"branches":60,"functions":81,"lines":70,"nyc-arg":["--exclude","tap-snapshots/**"]},"engines":{"node":"^20.17.0 || >=22.9.0"},"templateOSS":{"//@npmcli/template-oss":"This file is partially managed by @npmcli/template-oss. Edits may be overwritten.","version":"4.27.1","publish":true},"gitHead":"f1e5ef01aace27d1545c05954d0c17172bc463a1","_id":"mute-stream@3.0.0","bugs":{"url":"https://github.com/npm/mute-stream/issues"},"homepage":"https://github.com/npm/mute-stream#readme","_nodeVersion":"22.20.0","_npmVersion":"11.6.2","dist":{"shasum":"cd8014dd2acb72e1e91bb67c74f0019e620ba2d1","size":2818,"noattachment":false,"key":"/mute-stream/-/mute-stream-3.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/mute-stream/download/mute-stream-3.0.0.tgz"},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:aa679ada-0b5e-4a39-9479-508a1e143a6c"}},"directories":{},"maintainers":[{"name":"gar","email":""},{"name":"npm-cli-ops","email":""},{"name":"owlstronaut","email":""},{"name":"reggi","email":""},{"name":"saquibkhan","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/mute-stream_3.0.0_1761146876422_0.9410840229532991"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2025-10-22T15:27:56.606Z","publish_time":1761146876606,"_source_registry_name":"default","_cnpm_publish_time":1761146876606},"2.0.0":{"name":"mute-stream","version":"2.0.0","main":"lib/index.js","devDependencies":{"@npmcli/eslint-config":"^5.0.0","@npmcli/template-oss":"4.23.3","tap":"^16.3.0"},"scripts":{"test":"tap","lint":"npm run eslint","postlint":"template-oss-check","template-oss-apply":"template-oss-apply --force","lintfix":"npm run eslint -- --fix","snap":"tap","posttest":"npm run lint","eslint":"eslint \"**/*.{js,cjs,ts,mjs,jsx,tsx}\""},"repository":{"type":"git","url":"git+https://github.com/npm/mute-stream.git"},"keywords":["mute","stream","pipe"],"author":{"name":"GitHub Inc."},"license":"ISC","description":"Bytes go in, but they don't come out (when muted).","tap":{"statements":70,"branches":60,"functions":81,"lines":70,"nyc-arg":["--exclude","tap-snapshots/**"]},"engines":{"node":"^18.17.0 || >=20.5.0"},"templateOSS":{"//@npmcli/template-oss":"This file is partially managed by @npmcli/template-oss. Edits may be overwritten.","version":"4.23.3","publish":true},"_id":"mute-stream@2.0.0","gitHead":"5bddaac23fc80e2107b5e73870fd1a4b38139f54","bugs":{"url":"https://github.com/npm/mute-stream/issues"},"homepage":"https://github.com/npm/mute-stream#readme","_nodeVersion":"22.9.0","_npmVersion":"10.8.3","dist":{"shasum":"a5446fc0c512b71c83c44d908d5c7b7b4c493b2b","size":2816,"noattachment":false,"key":"/mute-stream/-/mute-stream-2.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/mute-stream/download/mute-stream-2.0.0.tgz"},"_npmUser":{"name":"npm-cli-ops","email":"npm-cli+bot@github.com"},"directories":{},"maintainers":[{"name":"gar","email":""},{"name":"npm-cli-ops","email":""},{"name":"owlstronaut","email":""},{"name":"reggi","email":""},{"name":"saquibkhan","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/mute-stream_2.0.0_1727205126476_0.559613804764286"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2024-09-24T19:12:06.702Z","publish_time":1727205126702,"_source_registry_name":"default","_cnpm_publish_time":1727205126702},"1.0.0":{"name":"mute-stream","version":"1.0.0","main":"lib/index.js","devDependencies":{"@npmcli/eslint-config":"^4.0.0","@npmcli/template-oss":"4.11.0","tap":"^16.3.0"},"scripts":{"test":"tap","lint":"eslint \"**/*.js\"","postlint":"template-oss-check","template-oss-apply":"template-oss-apply --force","lintfix":"npm run lint -- --fix","snap":"tap","posttest":"npm run lint"},"repository":{"type":"git","url":"git+https://github.com/npm/mute-stream.git"},"keywords":["mute","stream","pipe"],"author":{"name":"GitHub Inc."},"license":"ISC","description":"Bytes go in, but they don't come out (when muted).","tap":{"statements":70,"branches":60,"functions":81,"lines":70,"nyc-arg":["--exclude","tap-snapshots/**"]},"engines":{"node":"^14.17.0 || ^16.13.0 || >=18.0.0"},"templateOSS":{"//@npmcli/template-oss":"This file is partially managed by @npmcli/template-oss. Edits may be overwritten.","version":"4.11.0"},"gitHead":"d413c3129053bebb9b1e46072997e4f5966dc7b1","bugs":{"url":"https://github.com/npm/mute-stream/issues"},"homepage":"https://github.com/npm/mute-stream#readme","_id":"mute-stream@1.0.0","_nodeVersion":"18.12.1","_npmVersion":"9.2.0","dist":{"shasum":"e31bd9fe62f0aed23520aa4324ea6671531e013e","size":2770,"noattachment":false,"key":"/mute-stream/-/mute-stream-1.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/mute-stream/download/mute-stream-1.0.0.tgz"},"_npmUser":{"name":"lukekarrys","email":"luke@lukekarrys.com"},"directories":{},"maintainers":[{"name":"gar","email":""},{"name":"npm-cli-ops","email":""},{"name":"owlstronaut","email":""},{"name":"reggi","email":""},{"name":"saquibkhan","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/mute-stream_1.0.0_1670909723649_0.9376454553740738"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2022-12-13T05:35:41.891Z","publish_time":1670909723814,"_cnpm_publish_time":1670909723814},"0.0.8":{"name":"mute-stream","version":"0.0.8","main":"mute.js","directories":{"test":"test"},"devDependencies":{"tap":"^12.1.1"},"scripts":{"test":"tap test/*.js --cov"},"repository":{"type":"git","url":"git://github.com/isaacs/mute-stream.git"},"keywords":["mute","stream","pipe"],"author":{"name":"Isaac Z. Schlueter","email":"i@izs.me","url":"http://blog.izs.me/"},"license":"ISC","description":"Bytes go in, but they don't come out (when muted).","gitHead":"aa4a4baeaff5eeec83b5717738a44642f6948a9f","bugs":{"url":"https://github.com/isaacs/mute-stream/issues"},"homepage":"https://github.com/isaacs/mute-stream#readme","_id":"mute-stream@0.0.8","_npmVersion":"6.5.0","_nodeVersion":"10.12.0","_npmUser":{"name":"isaacs","email":"i@izs.me"},"dist":{"shasum":"1630c42b2251ff81e2a283de96a5497ea92e5e0d","size":2663,"noattachment":false,"key":"/mute-stream/-/mute-stream-0.0.8.tgz","tarball":"http://registry.cnpm.dingdandao.com/mute-stream/download/mute-stream-0.0.8.tgz"},"maintainers":[{"name":"gar","email":""},{"name":"npm-cli-ops","email":""},{"name":"owlstronaut","email":""},{"name":"reggi","email":""},{"name":"saquibkhan","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/mute-stream_0.0.8_1545974629018_0.7215891164233619"},"_hasShrinkwrap":false,"publish_time":1545974629143,"_cnpm_publish_time":1545974629143},"0.0.7":{"name":"mute-stream","version":"0.0.7","main":"mute.js","directories":{"test":"test"},"devDependencies":{"tap":"^5.4.4"},"scripts":{"test":"tap test/*.js --cov"},"repository":{"type":"git","url":"git://github.com/isaacs/mute-stream.git"},"keywords":["mute","stream","pipe"],"author":{"name":"Isaac Z. Schlueter","email":"i@izs.me","url":"http://blog.izs.me/"},"license":"ISC","description":"Bytes go in, but they don't come out (when muted).","gitHead":"304d9f7b277175b03c5ae828c326a211e3139778","bugs":{"url":"https://github.com/isaacs/mute-stream/issues"},"homepage":"https://github.com/isaacs/mute-stream#readme","_id":"mute-stream@0.0.7","_shasum":"3075ce93bc21b8fab43e1bc4da7e8115ed1e7bab","_from":".","_npmVersion":"3.10.9","_nodeVersion":"8.0.0-pre","_npmUser":{"name":"isaacs","email":"i@izs.me"},"dist":{"shasum":"3075ce93bc21b8fab43e1bc4da7e8115ed1e7bab","size":20120,"noattachment":false,"key":"/mute-stream/-/mute-stream-0.0.7.tgz","tarball":"http://registry.cnpm.dingdandao.com/mute-stream/download/mute-stream-0.0.7.tgz"},"maintainers":[{"name":"gar","email":""},{"name":"npm-cli-ops","email":""},{"name":"owlstronaut","email":""},{"name":"reggi","email":""},{"name":"saquibkhan","email":""}],"_npmOperationalInternal":{"host":"packages-18-east.internal.npmjs.com","tmp":"tmp/mute-stream-0.0.7.tgz_1483483671377_0.22980716335587204"},"publish_time":1483483673781,"_cnpm_publish_time":1483483673781,"_hasShrinkwrap":false},"0.0.6":{"name":"mute-stream","version":"0.0.6","main":"mute.js","directories":{"test":"test"},"devDependencies":{"tap":"^1.2.0"},"scripts":{"test":"tap test/*.js"},"repository":{"type":"git","url":"git://github.com/isaacs/mute-stream.git"},"keywords":["mute","stream","pipe"],"author":{"name":"Isaac Z. Schlueter","email":"i@izs.me","url":"http://blog.izs.me/"},"license":"ISC","description":"Bytes go in, but they don't come out (when muted).","gitHead":"3c0b793839b923b8d8a86a3d07f70fa451e30348","bugs":{"url":"https://github.com/isaacs/mute-stream/issues"},"homepage":"https://github.com/isaacs/mute-stream#readme","_id":"mute-stream@0.0.6","_shasum":"48962b19e169fd1dfc240b3f1e7317627bbc47db","_from":".","_npmVersion":"3.7.0","_nodeVersion":"5.6.0","_npmUser":{"name":"isaacs","email":"i@izs.me"},"dist":{"shasum":"48962b19e169fd1dfc240b3f1e7317627bbc47db","size":3561,"noattachment":false,"key":"/mute-stream/-/mute-stream-0.0.6.tgz","tarball":"http://registry.cnpm.dingdandao.com/mute-stream/download/mute-stream-0.0.6.tgz"},"maintainers":[{"name":"gar","email":""},{"name":"npm-cli-ops","email":""},{"name":"owlstronaut","email":""},{"name":"reggi","email":""},{"name":"saquibkhan","email":""}],"_npmOperationalInternal":{"host":"packages-9-west.internal.npmjs.com","tmp":"tmp/mute-stream-0.0.6.tgz_1455343284080_0.04852168820798397"},"publish_time":1455343285846,"_cnpm_publish_time":1455343285846,"_hasShrinkwrap":false},"0.0.5":{"name":"mute-stream","version":"0.0.5","main":"mute.js","directories":{"test":"test"},"devDependencies":{"tap":"~0.2.5"},"scripts":{"test":"tap test/*.js"},"repository":{"type":"git","url":"git://github.com/isaacs/mute-stream.git"},"keywords":["mute","stream","pipe"],"author":{"name":"Isaac Z. Schlueter","email":"i@izs.me","url":"http://blog.izs.me/"},"license":"ISC","description":"Bytes go in, but they don't come out (when muted).","gitHead":"17d9854a315f56088d039534f87b740e470a9af0","bugs":{"url":"https://github.com/isaacs/mute-stream/issues"},"homepage":"https://github.com/isaacs/mute-stream#readme","_id":"mute-stream@0.0.5","_shasum":"8fbfabb0a98a253d3184331f9e8deb7372fac6c0","_from":".","_npmVersion":"2.10.0","_nodeVersion":"2.0.1","_npmUser":{"name":"isaacs","email":"isaacs@npmjs.com"},"dist":{"shasum":"8fbfabb0a98a253d3184331f9e8deb7372fac6c0","size":3415,"noattachment":false,"key":"/mute-stream/-/mute-stream-0.0.5.tgz","tarball":"http://registry.cnpm.dingdandao.com/mute-stream/download/mute-stream-0.0.5.tgz"},"maintainers":[{"name":"gar","email":""},{"name":"npm-cli-ops","email":""},{"name":"owlstronaut","email":""},{"name":"reggi","email":""},{"name":"saquibkhan","email":""}],"publish_time":1432105916592,"_cnpm_publish_time":1432105916592,"_hasShrinkwrap":false},"0.0.4":{"name":"mute-stream","version":"0.0.4","main":"mute.js","directories":{"test":"test"},"devDependencies":{"tap":"~0.2.5"},"scripts":{"test":"tap test/*.js"},"repository":{"type":"git","url":"git://github.com/isaacs/mute-stream"},"keywords":["mute","stream","pipe"],"author":{"name":"Isaac Z. Schlueter","email":"i@izs.me","url":"http://blog.izs.me/"},"license":"BSD","description":"Bytes go in, but they don't come out (when muted).","readmeFilename":"README.md","bugs":{"url":"https://github.com/isaacs/mute-stream/issues"},"_id":"mute-stream@0.0.4","dist":{"shasum":"a9219960a6d5d5d046597aee51252c6655f7177e","size":3651,"noattachment":false,"key":"/mute-stream/-/mute-stream-0.0.4.tgz","tarball":"http://registry.cnpm.dingdandao.com/mute-stream/download/mute-stream-0.0.4.tgz"},"_from":".","_npmVersion":"1.3.4","_npmUser":{"name":"isaacs","email":"i@izs.me"},"maintainers":[{"name":"gar","email":""},{"name":"npm-cli-ops","email":""},{"name":"owlstronaut","email":""},{"name":"reggi","email":""},{"name":"saquibkhan","email":""}],"publish_time":1373850917730,"_hasShrinkwrap":false,"_cnpm_publish_time":1373850917730},"0.0.3":{"name":"mute-stream","version":"0.0.3","main":"mute.js","directories":{"test":"test"},"devDependencies":{"tap":"~0.2.5"},"scripts":{"test":"tap test/*.js"},"repository":{"type":"git","url":"git://github.com/isaacs/mute-stream"},"keywords":["mute","stream","pipe"],"author":{"name":"Isaac Z. Schlueter","email":"i@izs.me","url":"http://blog.izs.me/"},"license":"BSD","description":"Bytes go in, but they don't come out (when muted).","_id":"mute-stream@0.0.3","dist":{"shasum":"f09c090d333b3063f615cbbcca71b349893f0152","size":3308,"noattachment":false,"key":"/mute-stream/-/mute-stream-0.0.3.tgz","tarball":"http://registry.cnpm.dingdandao.com/mute-stream/download/mute-stream-0.0.3.tgz"},"_npmVersion":"1.1.49","_npmUser":{"name":"isaacs","email":"i@izs.me"},"maintainers":[{"name":"gar","email":""},{"name":"npm-cli-ops","email":""},{"name":"owlstronaut","email":""},{"name":"reggi","email":""},{"name":"saquibkhan","email":""}],"publish_time":1345007775116,"_hasShrinkwrap":false,"_cnpm_publish_time":1345007775116},"0.0.2":{"name":"mute-stream","version":"0.0.2","main":"mute.js","directories":{"test":"test"},"devDependencies":{"tap":"~0.2.5"},"scripts":{"test":"tap test/*.js"},"repository":{"type":"git","url":"git://github.com/isaacs/mute-stream"},"keywords":["mute","stream","pipe"],"author":{"name":"Isaac Z. Schlueter","email":"i@izs.me","url":"http://blog.izs.me/"},"license":"BSD","description":"Bytes go in, but they don't come out (when muted).","_id":"mute-stream@0.0.2","dist":{"shasum":"75d4466df24a57e80fec806bda88561cd0560d2d","size":3181,"noattachment":false,"key":"/mute-stream/-/mute-stream-0.0.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/mute-stream/download/mute-stream-0.0.2.tgz"},"maintainers":[{"name":"gar","email":""},{"name":"npm-cli-ops","email":""},{"name":"owlstronaut","email":""},{"name":"reggi","email":""},{"name":"saquibkhan","email":""}],"publish_time":1343168504924,"_hasShrinkwrap":false,"_cnpm_publish_time":1343168504924},"0.0.1":{"name":"mute-stream","version":"0.0.1","main":"mute.js","directories":{"test":"test"},"devDependencies":{"tap":"~0.2.5"},"scripts":{"test":"tap test/*.js"},"repository":{"type":"git","url":"git://github.com/isaacs/mute-stream"},"keywords":["mute","stream","pipe"],"author":{"name":"Isaac Z. Schlueter","email":"i@izs.me","url":"http://blog.izs.me/"},"license":"BSD","description":"Bytes go in, but they don't come out (when muted).","_id":"mute-stream@0.0.1","dist":{"shasum":"8a60bfb9c7e669c458af0e173e0c52eecc20f068","size":2797,"noattachment":false,"key":"/mute-stream/-/mute-stream-0.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/mute-stream/download/mute-stream-0.0.1.tgz"},"maintainers":[{"name":"gar","email":""},{"name":"npm-cli-ops","email":""},{"name":"owlstronaut","email":""},{"name":"reggi","email":""},{"name":"saquibkhan","email":""}],"publish_time":1343093242992,"_hasShrinkwrap":false,"_cnpm_publish_time":1343093242992}},"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","_attachments":{},"homepage":"https://github.com/npm/mute-stream#readme","bugs":{"url":"https://github.com/npm/mute-stream/issues"},"license":"ISC"}