This is a
playground to test code. It runs a full
Node.js environment and already has all of
npm’s 400,000 packages pre-installed, including
middle with all
npm packages installed. Try it out:
This service is provided by RunKit and is not affiliated with npm, Inc or the package authors.
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);