poelstra / ts-stream

Type-safe object streams with seamless support for backpressure, ending, and error handling
MIT License
65 stars 13 forks source link

What about reading from #40

Closed MarcWeber closed 3 years ago

MarcWeber commented 5 years ago

I have the case 1) read chunks 2) turn into csv rows 3) jam 50 items 4) write 50 items to database. It would be nice if you could document why you didn't add such file reader because createReadStream.on('data', ...) is untyped.

poelstra commented 5 years ago

Your use case sounds doable, and I don't understand what this issue is about, sorry.

HaKr commented 5 years ago

looks like a request for the counterpart of FileSink, which would provide a stream of lines.

MarcWeber commented 3 years ago

I think the batcher transformer satisfies that old need