glue-streams
Compose one stream from other streams, arrays or individual objects.
Usage
var glue = ;var stream = ; glueoptions = objectMode: false highWaterMark: 16; var glued = glue;glued; /* Output:1234567*/
API
glue(streams...)
Returns stream that will emit objects from passed streams.
streams
could be:
- Readable stream object
- Ordinary object
- Array of objects / streams
- Functions, that will be executed, when all streams before is ended. Returned object will be streamed by previous rules.
glue.obj(streams...)
Creating object stream (overrides glue.options.objectMode
to true).
glue.options
Object, that contains options, which will be used for every call to glue(...)
or glue.obj(...)
.
objectMode
Type: Boolean
Default: false
highWaterMark
Type: Number
Default: 16
License
MIT (c) 2014 Vsevolod Strukchinsky