npm / fstream

Advanced FS Streaming for Node
ISC License
208 stars 43 forks source link

Transformer/Duplex fstream #15

Open rauno56 opened 11 years ago

rauno56 commented 11 years ago

The fstream streams interface is more than just a little different from the usual streams2 one. Feels to me like there isn't no base class for processing the stream coming from fstream.Reader so that it fits to fstream.Writer.

What are the aspects to turn attention to: the needed methods to call or event to emit, to implement a API to transform those streams?

I'm thinking of renaming the files on the fly; filtering by the content; regexping the content or encrypting, chaining these processes and combining with the node-tar.

I'm investigating, if anybody has ideas, feel free to give me some directions...

isaacs commented 11 years ago

Honestly, at this point, I'm just kind of procrastinating until I can get npm and node-tar off of these modules, and come up with a better abstraction. Feel free to investigate.