Combining two streams
Want to see pretty graphs? Log in now!
npm install middle
|2||downloads in the last week|
|2||downloads in the last month|
|Last Published By|
|Version||0.0.2 last updated 2 years ago|
Get a stream A, pipe it into stream B.
Returns a duplex stream that is the writeable stream part of A and a readable stream part of B
var Middle = require('middle'); var from = // a duplex stream var to = // another duplex stream var middle = new Middle(from, to) // you can also pipe this: anotherStream.pipe(middle);