intersperse stream chunks with separators
Intersperse stream chunks with separators.
var joinStream = require'join-stream';var split = require'event-stream'split;processstdinpipesplitpipejoinStream','pipeprocessstdout;
$ echo -e 'abc\ndef\nhi\njkl' | node example/comma.jsabc,def,hi,jkl
var joinStream = require'join-stream'
Return a through stream
that inserts the string or buffer separator
opts.end is truthy, insert the separators immediately after
are received and add a separator after the last element. Otherwise add the
separators only after the next element has been received and don't add a
separator after the last element.
With npm do:
npm install join-stream