Combine Streams
Basically a streams2 version of combined-stream. Allows you to combine streams as well as strings and buffers into a single stream. Why? I don't know. I just saw this repo and thought, "hey, this sucks because it's not streams2".
Example
API
Combine([options])
Creates a new Combine
instance.
options
are passed to require('stream').PassThrough
.
var combine =
combine.append(obj)
You can append:
- A readable stream
- A buffer
- A string
- A thunk that returns one of the above
To signify that you are done appending items,
you must call combine.append(null)
just like a readable stream's .push(null)
implementation.
combine.pipe(dest [, options])
combine
itself is a readable stream,
so you should probably use combine.pipe(dest)
.