pipe streams together and close all of them if one of them closes
Browse cluster: Node.js HTTP utilities & middleware →pump is a Node.js module for piping streams together with automatic cleanup and callback support. It solves problems with the standard pipe method by destroying all streams if any one of them closes, and by providing a callback to signal when piping has finished. The module is built in JavaScript for Node.js and was created by mafintosh, and is part of the broader mississippi stream utility collection.