fstream icon indicating copy to clipboard operation
fstream copied to clipboard

Transformer/Duplex fstream

Open rauno56 opened this issue 12 years ago • 1 comments

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...

rauno56 avatar Aug 16 '13 09:08 rauno56

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.

isaacs avatar Aug 16 '13 14:08 isaacs