pipe-box
v2.1.0
Published
Wrap a series of piped streams into a single stream
Downloads
3
Readme
Pipe box
Encapsulate a series of piped streams into a single stream object,
const PipeBox = require('pipe-box');
const pipedSequence = sourceStream
.pipe(someTransform)
.pipe(someOtherTransform);
var pipeBox = new PipeBox( { writeable: sourceStream, readable: pipedSequence } );
pipeBox.write('something');
pipeBox.read() // => The something transformed by the transforms