{"_id":"hijack-stream","_rev":"2963992","name":"hijack-stream","description":"Temporarily take over a readable stream","dist-tags":{"latest":"1.0.0"},"maintainers":[{"name":"addaleax","email":"anna@addaleax.net"},{"name":"alena.khineika","email":"alena.khineika@gmail.com"},{"name":"alexander_schroll","email":""},{"name":"chuck.kalmanek","email":"chuck.kalmanek@10gen.com"},{"name":"devtoolsbot","email":""},{"name":"durran","email":"durran@gmail.com"},{"name":"fredtruman","email":"fred.truman@mongodb.com"},{"name":"gribnoysup","email":"petushkov.sergey@gmail.com"},{"name":"hswolff","email":"hswolff@gmail.com"},{"name":"jack.weir","email":"johnjackweir@gmail.com"},{"name":"jarjee","email":"nathan.smyth@10gen.com"},{"name":"jeff-allen-mongo","email":"jeffrey.allen@10gen.com"},{"name":"jonathan.balsano","email":"jonathan.balsano@mongodb.com"},{"name":"kristina.stefano","email":"kristina.stefanova@mongodb.com"},{"name":"lerouxb","email":"lerouxb@gmail.com"},{"name":"mabaasit","email":""},{"name":"matt_d_rat","email":"matt@mattfairbrass.com"},{"name":"mbroadst","email":"mbroadst@gmail.com"},{"name":"mcasimir","email":"maurizio.cas@gmail.com"},{"name":"mmarcon","email":"me@marcon.me"},{"name":"mongo-j","email":""},{"name":"mongodb-build","email":"build-accounts@10gen.com"},{"name":"mongodb-js-user","email":"lucas.hrabovsky+mongodb-js@10gen.com"},{"name":"mutukrish","email":"mutukrish@gmail.com"},{"name":"rhysm","email":"rhys.howell@10gen.com"},{"name":"rueckstiess","email":"thomas@rueckstiess.net"},{"name":"satyasinha","email":"satyendra.n.sinha@gmail.com"},{"name":"shaketbaby","email":"shaketbaby@gmail.com"},{"name":"stennie","email":"stennie@cpan.org"},{"name":"tomhollander","email":"tomhollander@hotmail.com"}],"time":{"modified":"2023-05-08T06:30:52.000Z","created":"2021-04-12T15:41:17.986Z","1.0.0":"2021-04-12T15:41:17.986Z"},"users":{},"repository":{"type":"git","url":"git+https://github.com/mongodb-js/hijack-stream.git"},"versions":{"1.0.0":{"name":"hijack-stream","version":"1.0.0","description":"Temporarily take over a readable stream","keywords":["password","prompt","tty","ask"],"homepage":"https://github.com/mongodb-js/hijack-stream","repository":{"type":"git","url":"git+https://github.com/mongodb-js/hijack-stream.git"},"bugs":{"url":"https://github.com/mongodb-js/hijack-stream/issues"},"main":"lib/index.js","exports":{"require":"./lib/index.js","import":"./.esm-wrapper.mjs"},"scripts":{"lint":"eslint **/*.ts","test":"npm run lint && npm run build && nyc mocha --colors -r ts-node/register test/*.ts","build":"npm run compile-ts && gen-esm-wrapper . ./.esm-wrapper.mjs","prepack":"npm run build","compile-ts":"tsc -p tsconfig.json"},"license":"Apache-2.0","devDependencies":{"@types/mocha":"^8.0.3","@types/node":"^14.11.1","@typescript-eslint/eslint-plugin":"^4.2.0","@typescript-eslint/parser":"^4.2.0","eslint":"^7.9.0","eslint-config-semistandard":"^15.0.1","eslint-config-standard":"^14.1.1","eslint-plugin-import":"^2.22.0","eslint-plugin-node":"^11.1.0","eslint-plugin-promise":"^4.2.1","eslint-plugin-standard":"^4.0.1","gen-esm-wrapper":"^1.1.0","mocha":"^8.1.3","nyc":"^15.1.0","ts-node":"^9.0.0","typescript":"^4.0.3"},"gitHead":"871ba578cca713ecaca90e21c85cb0e3c376c960","_id":"hijack-stream@1.0.0","_nodeVersion":"14.16.0","_npmVersion":"6.14.11","dist":{"shasum":"993707be0a952bb7969e3fb1b25ebacada750d70","size":6734,"noattachment":false,"key":"/hijack-stream/-/hijack-stream-1.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/hijack-stream/download/hijack-stream-1.0.0.tgz"},"_npmUser":{"name":"addaleax","email":"anna@addaleax.net"},"directories":{},"maintainers":[{"name":"addaleax","email":"anna@addaleax.net"},{"name":"alena.khineika","email":"alena.khineika@gmail.com"},{"name":"alexander_schroll","email":""},{"name":"chuck.kalmanek","email":"chuck.kalmanek@10gen.com"},{"name":"devtoolsbot","email":""},{"name":"durran","email":"durran@gmail.com"},{"name":"fredtruman","email":"fred.truman@mongodb.com"},{"name":"gribnoysup","email":"petushkov.sergey@gmail.com"},{"name":"hswolff","email":"hswolff@gmail.com"},{"name":"jack.weir","email":"johnjackweir@gmail.com"},{"name":"jarjee","email":"nathan.smyth@10gen.com"},{"name":"jeff-allen-mongo","email":"jeffrey.allen@10gen.com"},{"name":"jonathan.balsano","email":"jonathan.balsano@mongodb.com"},{"name":"kristina.stefano","email":"kristina.stefanova@mongodb.com"},{"name":"lerouxb","email":"lerouxb@gmail.com"},{"name":"mabaasit","email":""},{"name":"matt_d_rat","email":"matt@mattfairbrass.com"},{"name":"mbroadst","email":"mbroadst@gmail.com"},{"name":"mcasimir","email":"maurizio.cas@gmail.com"},{"name":"mmarcon","email":"me@marcon.me"},{"name":"mongo-j","email":""},{"name":"mongodb-build","email":"build-accounts@10gen.com"},{"name":"mongodb-js-user","email":"lucas.hrabovsky+mongodb-js@10gen.com"},{"name":"mutukrish","email":"mutukrish@gmail.com"},{"name":"rhysm","email":"rhys.howell@10gen.com"},{"name":"rueckstiess","email":"thomas@rueckstiess.net"},{"name":"satyasinha","email":"satyendra.n.sinha@gmail.com"},{"name":"shaketbaby","email":"shaketbaby@gmail.com"},{"name":"stennie","email":"stennie@cpan.org"},{"name":"tomhollander","email":"tomhollander@hotmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/hijack-stream_1.0.0_1618242077863_0.302058433826369"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2021-12-27T10:48:07.577Z","publish_time":1618242077986,"_cnpm_publish_time":1618242077986}},"readme":"# hijack-stream\n\nTemporarily take over a readable stream.\n\n```js\nimport hijackStream from 'hijack-stream';\n\nconst { restore } = hijackStream({\n  input: process.stdin,\n  ondata(chunk) { if (chunk.includes('done')) restore(); },\n  onend(error) { if (error !== null) console.warn(error); }\n})\n```\n\n## Why not use [`read`](https://www.npmjs.com/package/read) instead?\n\nBecause `read `does not work inside a Node.js REPL.\n\n## LICENSE\n\nMIT\n","_attachments":{},"homepage":"https://github.com/mongodb-js/hijack-stream","bugs":{"url":"https://github.com/mongodb-js/hijack-stream/issues"},"license":"Apache-2.0"}