A meta-stream for sending multiple streams down a single stream. Like <a href="https://github.com/dominictarr/mux-demux">mux-demux</a> except in series instead of in parallel.
A meta-stream for sending multiple streams down a single stream. Like mux-demux except in series instead of in parallel.
convoy-stream is useful in different cases to mux-demux for example,
replicating multiple files down a stream, or packing multiple files
into one file.
convoy-stream uses length packed frames, so binary data is also supported!
var convoy = require'..'var assert = require'assert'var es = require'event-stream'var c = convoyvar d = convoyvar c1 = ccreateStream //push a stream onto the stack.c1write'hello'c1end//pipe the convoys together.cpipedvar d1 = dcreateStreamd1on'data' console.logbindconsole