pumpcat
pumpcat pipes streams together and concatenates strings or binary data and calls a callback with the result
pumpcat = pump + (concatination using bl)
npm install pumpcat
What problem does it solve?
All the problems that pump solves with added functionality of concatinating the buffer for you and let you handle the error.
Usage
Simply pass the streams you want to pipe together to pumpstream and add a callback
const pumpcat =const Readable PassThrough =const source =const dest =
You can use pumpcat to pipe more than two streams together as well
var transform =
If source
, transform
, anotherTransform
or dest
closes all of them will be destroyed.
License
MIT