Angel, pipe() returns the dest. So, a.pipe(b).pipe(c) ==> (a.pipe(b), b.pipe(c), c)
Joe, Nathan is totally the guy to talk to about this. He's been banging away at streams2 parsers for a while now. On Wed, Feb 6, 2013 at 9:53 AM, Angel Java Lopez <[email protected]> wrote: > The first time I read your first email, my first thought was: why not: > > fs.createReadStream('file').pipe(parser); > parser.pipe(processor); > > But maybe I missed something you want from the new Stream2 > > > On Wed, Feb 6, 2013 at 11:26 AM, Joe Ferner <[email protected]> wrote: >> >> Looking through your stream-parser module is looks like it internally >> buffers the incoming data. I forgot to mention that the files I'm reading >> are many gigabytes in size so I think I really need a pull based stream >> solution. I've been able to accomplish this using syntax like: >> parser.createParser(fs.createReadStream('fs')).pipe(processor). I was just >> looking for a more elegant all pipe based solution. >> >> > -- > -- > 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. > > -- -- 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.
