{"name":"mute-stream","version":"4.0.0","keywords":["mute","stream","pipe"],"author":{"name":"GitHub Inc."},"license":"ISC","_id":"mute-stream@4.0.0","maintainers":[{"name":"saquibkhan","email":"saquibkhan@github.com"},{"name":"npm-cli-ops","email":"npm-cli+bot@github.com"},{"name":"reggi","email":"reggi@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"},"dist":{"shasum":"3b04c237748aa7a2c93d8b5093cb001eaca1fbeb","tarball":"http://registry-npm.ywwl.com/mute-stream/download/mute-stream-4.0.0.tgz","fileCount":4,"integrity":"sha512-gSrprq0fJ3EiOErzjdIZrjysVVmJ4uu1QWfCDss5LypA5OXvrMje5Ym5z6V6RLyJ2eF87lasX7t6a0AnFvZblg==","signatures":[{"sig":"MEUCIQDHh+3F15qnwpzpqQojH0C9BzRtyQS+W5OAtFnlow3TlAIgSRSu2w9pYEJoF8u0OaLrfllae/U0pyOd3n+fvg7ZvWw=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/mute-stream@4.0.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":6678,"size":2853,"noattachment":false,"key":"/mute-stream/-/mute-stream-4.0.0.tgz"},"main":"lib/index.js","engines":{"node":"^22.22.2 || ^24.15.0 || >=26.0.0"},"gitHead":"f601f0886bc3a3beb9715d1f11bf8440e5d3cdbd","scripts":{"lint":"npm run eslint","snap":"node --test --test-update-snapshots './test/**/*.js'","test":"node --test './test/**/*.js'","eslint":"eslint \"**/*.{js,cjs,ts,mjs,jsx,tsx}\"","lintfix":"npm run eslint -- --fix","postlint":"template-oss-check","posttest":"npm run lint","test:cover":"node --test --experimental-test-coverage --test-timeout=3000 --test-coverage-lines=100 --test-coverage-functions=100 --test-coverage-branches=100 './test/**/*.js'","test:node20":"node --test test","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.14.1","description":"Bytes go in, but they don't come out (when muted).","directories":{},"templateOSS":{"publish":true,"version":"5.0.0","testRunner":"node:test","latestCiVersion":24,"//@npmcli/template-oss":"This file is partially managed by @npmcli/template-oss. Edits may be overwritten."},"_nodeVersion":"26.1.0","_hasShrinkwrap":false,"devDependencies":{"@npmcli/template-oss":"5.0.0","@npmcli/eslint-config":"^6.0.0"},"_npmOperationalInternal":{"tmp":"tmp/mute-stream_4.0.0_1778265414905_0.6433982609550144","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":1778265415064,"_cnpm_publish_time":1778265415064,"dist-tags":{"latest":"4.0.0"}}