1.1.1 • Published 5 years ago

pipe-errors v1.1.1

Weekly downloads
24
License
-
Repository
github
Last release
5 years ago

pipe-errors

Handle errors on piping streams and pipe error to the end.

NPM version Build Status

Install

Install with npm

npm install pipe-errors

Usage

const pipeErrors = require('pipe-errors')
stream1.pipe(stream2).pipe(stream3)
pipeErrors(stream1, stream2, stream3)
// equal to `pipeErrors([stream1, stream2, stream3])`

Composite:

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)`

API

const pipeErrors = require('pipe-errors')

pipeErrors(stream1, stream2, ..., streamN)

pipeErrors(stream1, stream2, ..., streamN)

return the last stream(streamN). When one stream emit a error, the error will be piped to next, and next until the last.

License

MIT © Teambition

1.1.1

5 years ago

1.1.0

7 years ago

1.0.1

8 years ago

1.0.0

8 years ago

0.1.0

9 years ago