As far as I understand it, util.pump is deprecated in favor of stream.pipe: https://groups.google.com/group/nodejs/browse_thread/thread/17074342f01fe313
Also see this deck from Felix: http://felixge.s3.amazonaws.com/11/nodejs-streams.pdf and his passthrough stream example: github.com/felixge/node-passthrough-stream It sounds like what you're looking for is stream.pipe. I'm not familiar with it, but you could probably use mikeal's BufferedStream or create passthrough stream (felix's) and do some manual buffering, etc... Also be sure to read through the stream documentation to make sure you understand what makes a stream a stream, as you can easily implement your own. http://nodejs.org/docs/v0.6.7/api/all.html#streams Cheers, Adam Crabtree On Wed, Feb 1, 2012 at 5:48 AM, Chris Rhoden <[email protected]> wrote: > As much as I know this is not the answer you're looking for (as it's not > very easy), that's a pipe. > > > On Wed, Feb 1, 2012 at 8:38 AM, SethP <[email protected]> wrote: > >> I don't think so - that's a way to move data from a read stream to a >> write stream; I'm looking for the inverse: a way to move data from a write >> stream to a read stream. >> >> -- >> 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 >> > > > > -- > chrisrhoden > > -- > 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 > -- Better a little with righteousness than much gain with injustice. Proverbs 16:8 -- 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
