Lines Matching refs:pump
1 # pump chapter
3 pump is a small node module that pipes streams together and destroys all of them if one of them clo…
6 npm install pump
9 … status](http://img.shields.io/travis/mafintosh/pump.svg?style=flat)](http://travis-ci.org/mafinto…
16 pump does these two things for you
20 Simply pass the streams you want to pipe together to pump and add an optional callback
23 var pump = require('pump')
29 pump(source, dest, function(err) {
34 dest.destroy() // when dest is closed pump will destroy source
38 You can use pump to pipe more than two streams together as well
43 pump(source, transform, anotherTransform, dest, function(err) {
50 Similarly to `stream.pipe()`, `pump()` returns the last stream passed in, so you can do:
53 return pump(s1, s2) // returns s2
65 `pump` is part of the [mississippi stream utility collection](https://github.com/maxogden/mississip…