/node-pipe-box

Wrap a series of node piped streams into a single stream

Primary LanguageJavaScriptISC LicenseISC

Pipe box

npm version

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