introduce a convenient way to create basic custom streams
this package offers you convenience factory methods for simpler creation of custom streams from the 4 base streams.
Core stream module is re-exported. So you can easy replace
require('stream-build') and go on. Now you have 4 factory methods which can be used to create custom streams:
// Before//this and thatutilinheritMyReadableReadable//custom read codevar myReadable =
// aftervar myReadable = streamBuildreadable//custom read code/* options here are passed to core constructors */
npm install stream-build
the builder provided here do not use constructors or inheritance. This package aims for readability, so if you worry about performance:
Creating a constructor function and using it as in the before-example may give you some bit better performance, since v8 uses such structures for optimization considerations. It's your choice then.
MIT (see license file)