mySource.pipe(myDestination, {end: false});
mySource.on('end', myDestination.write.bind(myDestination, 
myChunkIdLikeToAppend));


or

var StreamStream = require('stream-stream');
var chunkStream = new require('stream').PassThrough();

var ss = new StreamStream();
ss.write(mySource);
ss.write(chunkStream);
ss.pipe(myDestination);
chunkStream.end(myChunkIdLikeToAppend);

On Wednesday, 31 July 2013 19:54:44 UTC+2, Scott Corgan wrote:
>
> Been sitting on this one for awhile and can't seem to figure it out or 
> find anyone that has a solution.
>
> I just need to append one more chunk to the end of a stream. At first, I 
> thought I was successful using the "through" module, but for some reason, 
> it kept appending the new chunk in the middle of the stream.
>
> Any direction would be helpful, thanks.
>

-- 
-- 
Job Board: http://jobs.nodejs.org/
Posting guidelines: 
https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
You received this message because you are subscribed to the Google
Groups "nodejs" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/nodejs?hl=en?hl=en

--- 
You received this message because you are subscribed to the Google Groups 
"nodejs" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to