On Wed, Apr 17, 2013 at 05:05:45PM -0500, Isaac Schlueter wrote: > You can use stream.Passthrough for this. That's exactly what it's for. > > var pt = new stream.Passthrough() > pt.setEncoding('utf8') // for strings, if you are into that sort of thing > pt.write('foo'); > pt.write('bar\n'); > pt.write('ghoulie goo'); > pt.end() > > assert.equal(pt.read(), 'foobar\nghoulie goo')
That is perfect, thank you. It is long past the time for me to learn about the new streams. -- Alan Gutierrez ~ @bigeasy -- -- 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 nodejs@googlegroups.com To unsubscribe from this group, send email to nodejs+unsubscr...@googlegroups.com 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 nodejs+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.