2.1.0 • Published 3 years ago
pipe-box v2.1.0
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