Handle errors on piping streams and pipe error to the end.
npm install pipe-errorsHandle errors on piping streams and pipe error to the end.
[![NPM version][npm-image]][npm-url]
[![Build Status][travis-image]][travis-url]
Install with npm
``sh`
npm install pipe-errors
`jspipeErrors([stream1, stream2, stream3])
const pipeErrors = require('pipe-errors')
stream1.pipe(stream2).pipe(stream3)
pipeErrors(stream1, stream2, stream3)
// equal to `
Composite:
`js
const pipeErrors = require('pipe-errors')
stream1.pipe(stream2)
pipeErrors(stream1, stream2)
//... some other
stream2.pipe(stream3)
pipeErrors(stream2, stream3)
// equal to pipeErrors(stream1, stream2, stream3)`
`js``
const pipeErrors = require('pipe-errors')
return the last stream(streamN). When one stream emit a error, the error will be piped to next, and next until the last.
MIT © Teambition
[npm-url]: https://npmjs.org/package/pipe-errors
[npm-image]: http://img.shields.io/npm/v/pipe-errors.svg
[travis-url]: https://travis-ci.org/teambition/pipe-errors
[travis-image]: http://img.shields.io/travis/teambition/pipe-errors.svg