{"name":"mute-stream","version":"1.0.0","keywords":["mute","stream","pipe"],"author":{"name":"GitHub Inc."},"license":"ISC","_id":"mute-stream@1.0.0","maintainers":[{"name":"saquibkhan","email":"saquibkhan@github.com"},{"name":"fritzy","email":"fritzy@github.com"},{"name":"darcyclarke","email":"darcy@darcyclarke.me"},{"name":"nlf","email":"quitlahok@gmail.com"},{"name":"gar","email":"gar+npm@danger.computer"},{"name":"lukekarrys","email":"luke@lukekarrys.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":"e31bd9fe62f0aed23520aa4324ea6671531e013e","tarball":"http://registry-npm.ywwl.com/mute-stream/download/mute-stream-1.0.0.tgz","fileCount":4,"integrity":"sha512-avsJQhyd+680gKXyG/sQc0nXaC6rBkPOfyHYcFb9+hdkqQkR9bdnkJ0AMZhke0oesPqIO+mFFJ+IdBc7mst4IA==","signatures":[{"sig":"MEQCIE8nL2+bm3UXisQ7hKyQzRMnUwgNSbs6kXKwHZxPBhTxAiB2fZrv6MULNHhuKVD6bsK3YXH5qP6ULZSP5DVMmPtQCw==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":6428,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjmA8bACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmobew/+IDV81iSuH7PH2sEOEdugyIxWXl4VYCqqP54RdTP184w41P6j\r\nq34Y6KQUlfD8VxMzUbrzDZqAyuiFgWvI9+qEDlGmq0z4kB8KVF6pvB6sHyYj\r\nqm6EWDICXaKvKNOutWV5x6jzgwkVoWZMVa2MvkOz/sMOniTuaFy5nQR5uuK9\r\nDOD4Tzo3oPHRkVtOZNEWLqUz7ijzAhcRvCXMhpQVGh8IalY2rHp8KkIG2RrY\r\nopa3wnuGIUjlsaKGTizrUNtCDqI+QfAVaE5ZeaXepDon0NPxxz7h/ylqPXGL\r\nHJZgXfgjn8Xt1LVQvt/njXfCOTUYc4groxN+dQnqKUs6ZIWfcMQaKLkaUEkS\r\nYKoL19slojXvBxX8yNTVD4fZ+uLqnYbGSj08zvfYd5pPFvLVhGYv/Uh2gZq5\r\nyivSldH1oMoPB7AcEUZTMx7Xj3WzOU++0Y6q9C1JhAbOtHqClLu/Vaw/VYdt\r\nTZuB+Es/LUk3E3sOl9xCtbMbeRGgybYvn8jmurIP7SjI/hzZD1oGBcWFfbov\r\nJGq3zGRkAdj9fgiQv+ax2cxXiXjESMnUDrWYJ4R/HDrO1VVyuQUxZ2KmDtUX\r\nZ2RflIZpNZZ+4luw/Z2fp1YVhMBzeue7x4Tqr1LuwhrDXn/u3tbVNAlVuMID\r\nUV5qrf2y+nWQ2BEStGH+eHVujAknaQadpEE=\r\n=rEcp\r\n-----END PGP SIGNATURE-----\r\n","size":2770,"noattachment":false,"key":"/mute-stream/-/mute-stream-1.0.0.tgz"},"main":"lib/index.js","engines":{"node":"^14.17.0 || ^16.13.0 || >=18.0.0"},"gitHead":"d413c3129053bebb9b1e46072997e4f5966dc7b1","scripts":{"lint":"eslint \"**/*.js\"","snap":"tap","test":"tap","lintfix":"npm run lint -- --fix","postlint":"template-oss-check","posttest":"npm run lint","template-oss-apply":"template-oss-apply --force"},"_npmUser":{"name":"lukekarrys","email":"luke@lukekarrys.com"},"repository":{"url":"git+https://github.com/npm/mute-stream.git","type":"git"},"_npmVersion":"9.2.0","description":"Bytes go in, but they don't come out (when muted).","directories":{},"templateOSS":{"version":"4.11.0","//@npmcli/template-oss":"This file is partially managed by @npmcli/template-oss. Edits may be overwritten."},"_nodeVersion":"18.12.1","_hasShrinkwrap":false,"devDependencies":{"tap":"^16.3.0","@npmcli/template-oss":"4.11.0","@npmcli/eslint-config":"^4.0.0"},"_npmOperationalInternal":{"tmp":"tmp/mute-stream_1.0.0_1670909723649_0.9376454553740738","host":"s3://npm-registry-packages"},"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":1670909723814,"_cnpm_publish_time":1670909723814,"dist-tags":{"latest":"4.0.0"}}