add-stream
Append the contents of one stream onto another.
Usage
var fs = ;var es = ;var addStream = ; // Append strings/buffersfs // 1.txt contains: number1 // 2.txt contains: number2 ; // appended.txt contains: number1number2 // Append object streamses ;
API
var transformStream = addStream(stream, opts = {})
Create a transform stream that appends the contents of stream
onto whatever
is piped into it. Options are passed to the transform stream's constructor.
var transformStream = addStream.obj(stream, opts = {})
A convenient shortcut for addStream(stream, {objectMode: true})
.
License
MIT