mafintosh

mafintosh/pump

pipe streams together and close all of them if one of them closes

JavaScript
918
65
MIT License

pump is a small Node.js module that pipes streams together and destroys all of them if one closes or emits an error. It solves the problem of streams not being properly cleaned up when using standard `source.pipe(dest)` by providing automatic cleanup and optional completion callbacks. This utility is for Node.js developers working with stream pipelines who need robust error handling and resource management.

Total donated
Undistributed
Share with your subscribers: