Skip to content

Implement TransformStream (Web Stream) for csv-parse #444

@uasan

Description

@uasan

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions