{"name":"duplex-combination","description":"Combine a readable and writable stream into a duplex stream","version":"1.2.1","license":"BSD","scripts":{"test":"node t.js"},"author":{"name":"Aria Stewart","email":"aredridel@nbtsc.org"},"main":"dc.js","repository":{"type":"git","url":"git://github.com/aredridel/duplex-combination.git"},"keywords":["stream","streams2","duplex"],"bugs":{"url":"https://github.com/aredridel/duplex-combination/issues"},"gitHead":"02a45913ea84c1a0786dc3db8f8ade3b06c53619","homepage":"https://github.com/aredridel/duplex-combination#readme","_id":"duplex-combination@1.2.1","_shasum":"40e896025f8e6d079bcb4894eeae009745b4b54d","_from":".","_npmVersion":"3.0.0-pre.13","_nodeVersion":"2.3.0","_npmUser":{"name":"aredridel","email":"aredridel@nbtsc.org"},"maintainers":[{"name":"aredridel","email":"aredridel@nbtsc.org"}],"dist":{"shasum":"40e896025f8e6d079bcb4894eeae009745b4b54d","tarball":"http://registry-npm.ywwl.com/duplex-combination/download/duplex-combination-1.2.1.tgz","integrity":"sha512-BF+81XE0iFV5ws3e/ZwVLNq7nCQ7BgV5S+xVZTd0kUpIeN38H5w9n6oFaKi3aNozUR3SBftzN9w+2U0zVBDd3g==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCksc3Zhzkwe+cdssrg9dr4zLhhp1UylOnHerQjpj8SqgIgK8c1e2QB93L8JB1nlxH2xdG8o+dUA0ZhKD1LCTrR/bs="}],"size":1571,"noattachment":false,"key":"/duplex-combination/-/duplex-combination-1.2.1.tgz"},"directories":{},"readme":"# duplex-combination\n\nMerge a readable and writable stream together into a duplex stream\n\n## USE\n\n```javascript\nvar dp = new DuplexCombination(reader, writer, options);\n\ndp.write(\"data\");\ndp.on('readable', function() {\n    dp.read(n);\n})\n```\n\n## Additional public properties\n\nThe read and write streams are exposed with the properties `dp.reader` and `dp.writer`\n\n## ERRORS\n\nError events include the stream that triggered the error, so you can:\n\n```javascript\ndp.on('error',function(err,stream) {\n    if (stream === dp.reader) {\n        // error while reading\n    }\n    else {\n        // error while writing\n    }\n});\n```\n\n## Acknowledgements\n\nStolen shamelessly from Isaac Schuleter's `duplex-passthrough` module.\n","publish_time":1435195950527,"_cnpm_publish_time":1435195950527,"dist-tags":{"latest":"1.2.1"}}