UNPKG

@gideo-llc/backblaze-b2-upload-any

Version:

An intelligent upload function to be used with the backblaze-b2 module

8 lines (7 loc) 287 B
// Pipes multiple streams and propagates errors emitted from prior streams // through the rest of the streams. Returns the final stream. module.exports = (...streams) => streams.reduce((left, right) => left.on('error', right.destroy.bind(right)) .pipe(right) );