{"_id":"duplex-passthrough","_rev":"4646846","name":"duplex-passthrough","description":"like a passthrough, but in both directions","dist-tags":{"latest":"1.0.2"},"maintainers":[{"name":"isaacs","email":""}],"time":{"modified":"2026-04-10T20:19:53.000Z","created":"2013-07-15T23:33:21.993Z","1.0.2":"2015-05-20T07:09:17.634Z","1.0.1":"2013-07-15T23:40:59.023Z","1.0.0":"2013-07-15T23:33:21.993Z"},"users":{},"author":{"name":"Isaac Z. Schlueter","email":"i@izs.me"},"repository":{"type":"git","url":"git://github.com/isaacs/duplex-passthrough.git"},"versions":{"1.0.2":{"name":"duplex-passthrough","description":"like a passthrough, but in both directions","version":"1.0.2","license":"ISC","scripts":{"test":"node t.js"},"author":{"name":"Isaac Z. Schlueter","email":"i@izs.me"},"main":"dp.js","repository":{"type":"git","url":"git://github.com/isaacs/duplex-passthrough.git"},"keywords":["stream","passthrough","duplex"],"bugs":{"url":"https://github.com/isaacs/duplex-passthrough/issues"},"gitHead":"c7af2a6a6d47f0a0df3d56d234d270b4b9043fe7","homepage":"https://github.com/isaacs/duplex-passthrough#readme","_id":"duplex-passthrough@1.0.2","_shasum":"cfc6342b84a22b61aeeed42b346057af6e0bcfc1","_from":".","_npmVersion":"2.10.0","_nodeVersion":"2.0.1","_npmUser":{"name":"isaacs","email":"isaacs@npmjs.com"},"dist":{"shasum":"cfc6342b84a22b61aeeed42b346057af6e0bcfc1","size":1898,"noattachment":false,"key":"/duplex-passthrough/-/duplex-passthrough-1.0.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/duplex-passthrough/download/duplex-passthrough-1.0.2.tgz"},"maintainers":[{"name":"isaacs","email":""}],"directories":{},"publish_time":1432105757634,"_hasShrinkwrap":false,"_cnpm_publish_time":1432105757634,"_cnpmcore_publish_time":"2021-12-16T22:24:47.169Z"},"1.0.1":{"name":"duplex-passthrough","description":"like a passthrough, but in both directions","version":"1.0.1","license":"BSD","scripts":{"test":"node t.js"},"author":{"name":"Isaac Z. Schlueter","email":"i@izs.me"},"main":"dp.js","repository":{"type":"git","url":"git://github.com/isaacs/duplex-passthrough"},"keywords":["stream","passthrough","duplex"],"bugs":{"url":"https://github.com/isaacs/duplex-passthrough/issues"},"readmeFilename":"README.md","_id":"duplex-passthrough@1.0.1","dist":{"shasum":"4fc56acbfe24bb65853b4758d10dc3b54f38a141","size":2118,"noattachment":false,"key":"/duplex-passthrough/-/duplex-passthrough-1.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/duplex-passthrough/download/duplex-passthrough-1.0.1.tgz"},"_from":".","_npmVersion":"1.3.4","_npmUser":{"name":"isaacs","email":"i@izs.me"},"maintainers":[{"name":"isaacs","email":""}],"directories":{},"publish_time":1373931659023,"_hasShrinkwrap":false,"_cnpm_publish_time":1373931659023,"_cnpmcore_publish_time":"2021-12-16T22:24:47.353Z"},"1.0.0":{"name":"duplex-passthrough","description":"like a passthrough, but in both directions","version":"1.0.0","license":"BSD","scripts":{"test":"node t.js"},"author":{"name":"Isaac Z. Schlueter","email":"i@izs.me"},"main":"dp.js","repository":{"type":"git","url":"git://github.com/isaacs/duplex-passthrough"},"keywords":["stream","passthrough","duplex"],"bugs":{"url":"https://github.com/isaacs/duplex-passthrough/issues"},"readmeFilename":"README.md","_id":"duplex-passthrough@1.0.0","dist":{"shasum":"77c0bc735c74210eab4ab6e04e92f0b241275c9b","size":2200,"noattachment":false,"key":"/duplex-passthrough/-/duplex-passthrough-1.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/duplex-passthrough/download/duplex-passthrough-1.0.0.tgz"},"_from":".","_npmVersion":"1.3.4","_npmUser":{"name":"isaacs","email":"i@izs.me"},"maintainers":[{"name":"isaacs","email":""}],"directories":{},"publish_time":1373931201993,"_hasShrinkwrap":false,"_cnpm_publish_time":1373931201993,"_cnpmcore_publish_time":"2021-12-16T22:24:47.547Z"}},"readme":"# duplex-passthrough\n\nFor when a single passthrough stream is not enough.\n\n## USAGE\n\n```javascript\nvar dp = new DuplexPassThrough(stream, options);\n```\n\nOr, if the stream is not available yet:\n\n```javascript\nvar dp = new DuplexPassThrough(null, options);\n\n// some time later..\ndp.wrapStream(stream);\n```\n\nThis is useful if you have to buffer up both sides of a duplex stream\nfor some reason, like if you want to read some bits of a socket, but\nthen send it somewhere else, or do other crazy stuff.\n","_attachments":{},"homepage":"https://github.com/isaacs/duplex-passthrough#readme","bugs":{"url":"https://github.com/isaacs/duplex-passthrough/issues"},"license":"ISC"}