Import upstream version 3.0.0+git20200702.1.1a27827
Debian Janitor
2 years ago
52 | 52 | return pump(s1, s2) // returns s2 |
53 | 53 | ``` |
54 | 54 | |
55 | Note that `pump` attaches error handlers to the streams to do internal error handling, so if `s2` emits an | |
56 | error in the above scenario, it will not trigger a `proccess.on('uncaughtException')` if you do not listen for it. | |
57 | ||
55 | 58 | If you want to return a stream that combines *both* s1 and s2 to a single stream use |
56 | 59 | [pumpify](https://github.com/mafintosh/pumpify) instead. |
57 | 60 | |
62 | 65 | ## Related |
63 | 66 | |
64 | 67 | `pump` is part of the [mississippi stream utility collection](https://github.com/maxogden/mississippi) which includes more useful stream modules similar to this one. |
68 | ||
69 | ## For enterprise | |
70 | ||
71 | Available as part of the Tidelift Subscription. | |
72 | ||
73 | The maintainers of pump and thousands of other packages are working with Tidelift to deliver commercial support and maintenance for the open source dependencies you use to build your applications. Save time, reduce risk, and improve code health, while paying the maintainers of the exact dependencies you use. [Learn more.](https://tidelift.com/subscription/pkg/npm-pump?utm_source=npm-pump&utm_medium=referral&utm_campaign=enterprise) |