bubble-stream-error
1.0.0 • Public • Published bubble-stream-error
Node module for bubbling errors from 'sub-streams' to a master stream.

examples
This is what you would normally do:
randomStream.pipe(colorizeStream).pipe(choppedStream).pipe(finalStream);
[randomStream, colorizeStream, choppedStream, finalStream].forEach(function(stream) {
stream.on('error', function handleError(err) {
});
});
With bubble-stream-error
:
var bubbleError = require('bubble-stream-error');
bubbleError(randomStream, colorizeStream, choppedStream, finalStream);
randomStream.pipe(colorizeStream).pipe(choppedStream).pipe(finalStream);
finalStream.on('error', function handleAllStreamErrors(err) {
});
tests
License
MIT
/bubble-stream-error/
//
Package Sidebar
Install
npm i bubble-stream-error
Weekly Downloads