read-streams
v0.3.0
Published
Read streams and emits data from them (with/without ordering)
Downloads
5
Readme
read-streams
Reads multiple streams in order and emits data/errors from them. Inspired by ordered-read-streams.
If you want unordered stream of data - then you should use merge-stream.
Usage
var read = require('read-streams');
var stream1 = new Stream();
var stream2 = new Stream();
read(stream1, stream2).pipe(console.log)
API
read(stream..., [options])
stream
Type: stream.Readable
Readable stream, that will be read. You can pass Array
as first argument (instead of passing each stream as argument).
options
Type: Object
objectMode
Type: Boolean
Default: true
License
MIT (c) 2014 Vsevolod Strukchinsky