-
Notifications
You must be signed in to change notification settings - Fork 279
Description
Summary
Hi, our data source is ReadableStream, due to performance we would not like to use the twoWeb or fromWeb adapters, I see in the parser there is a file
https://github.com/adaltas/node-csv/blob/master/packages/csv-parse/lib/stream.js
but it is not exported and the implementation itself is not complete, there is no error handling and no promise waiting for the chunk parsing to complete.
I can make a PR in which I will add everything necessary for its correct operation to the stream.js file and make an export, would you be against this PR?
Motivation
If the data source is a web stream, such as fetch, then a productive pipe interface is needed to parse the CSV.
Alternative
I can implement TransformStream in my application if I export from your library the transform function from the file https://github.com/adaltas/node-csv/blob/master/packages/csv-parse/lib/api/index.js