{"name":"mute-stream","version":"3.0.0","keywords":["mute","stream","pipe"],"author":{"name":"GitHub Inc."},"license":"ISC","_id":"mute-stream@3.0.0","maintainers":[{"name":"gar","email":"gar+npm@danger.computer"},{"name":"saquibkhan","email":"saquibkhan@github.com"},{"name":"npm-cli-ops","email":"npm-cli+bot@github.com"},{"name":"reggi","email":"reggi@github.com"},{"name":"hashtagchris","email":"hashtagchris@github.com"},{"name":"owlstronaut","email":"owlstronaut@github.com"}],"homepage":"https://github.com/npm/mute-stream#readme","bugs":{"url":"https://github.com/npm/mute-stream/issues"},"tap":{"lines":70,"nyc-arg":["--exclude","tap-snapshots/**"],"branches":60,"functions":81,"statements":70},"dist":{"shasum":"cd8014dd2acb72e1e91bb67c74f0019e620ba2d1","tarball":"http://registry-npm.ywwl.com/mute-stream/download/mute-stream-3.0.0.tgz","fileCount":4,"integrity":"sha512-dkEJPVvun4FryqBmZ5KhDo0K9iDXAwn08tMLDinNdRBNPcYEDiWYysLcc6k3mjTMlbP9KyylvRpd4wFtwrT9rw==","signatures":[{"sig":"MEQCIHZNHwgWp67sgQJN9PC6IOkmI4zX4DwclMGy83esi8O6AiBstpA5ahhLhZ74zf+1fSm76j4BnCHjCCHm7oW08NsHzQ==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/mute-stream@3.0.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":6498,"size":2818,"noattachment":false,"key":"/mute-stream/-/mute-stream-3.0.0.tgz"},"main":"lib/index.js","engines":{"node":"^20.17.0 || >=22.9.0"},"gitHead":"f1e5ef01aace27d1545c05954d0c17172bc463a1","scripts":{"lint":"npm run eslint","snap":"tap","test":"tap","eslint":"eslint \"**/*.{js,cjs,ts,mjs,jsx,tsx}\"","lintfix":"npm run eslint -- --fix","postlint":"template-oss-check","posttest":"npm run lint","template-oss-apply":"template-oss-apply --force"},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:aa679ada-0b5e-4a39-9479-508a1e143a6c"}},"repository":{"url":"git+https://github.com/npm/mute-stream.git","type":"git"},"_npmVersion":"11.6.2","description":"Bytes go in, but they don't come out (when muted).","directories":{},"templateOSS":{"publish":true,"version":"4.27.1","//@npmcli/template-oss":"This file is partially managed by @npmcli/template-oss. Edits may be overwritten."},"_nodeVersion":"22.20.0","_hasShrinkwrap":false,"devDependencies":{"tap":"^16.3.0","@npmcli/template-oss":"4.27.1","@npmcli/eslint-config":"^5.0.0"},"_npmOperationalInternal":{"tmp":"tmp/mute-stream_3.0.0_1761146876422_0.9410840229532991","host":"s3://npm-registry-packages-npm-production"},"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":1761146876606,"_cnpm_publish_time":1761146876606,"dist-tags":{"latest":"4.0.0"}}