pipe-box

2.1.0 • Public • Published

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

Readme

Keywords

Package Sidebar

Install

npm i pipe-box

Weekly Downloads

1

Version

2.1.0

License

ISC

Unpacked Size

3.21 kB

Total Files

4

Last publish

Collaborators

  • mrdaniellewis