-
Notifications
You must be signed in to change notification settings - Fork 268
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Request for a Reliable Transformer to Parse Large CSV Files in Browser Environment #398
Comments
I think it would a good idea to pass a |
What do you mean by |
Hi, I'd like to add a +1 to this as we're encountering a similar issue. We're trying to parse large input files via the ESM streaming API without excessive memory pressure in the browser and hitting issues. |
Would you be able to share a reproducible script in JS (no TS) ? |
@wdavidw - I'll work on something when I'm back at my desk for ya. |
Summary
Please provide an implementation of a Transformer that can parse large CSV files in a browser environment.
Motivation
I tried to implement such a CsvParseTransformer.
However, when dealing with large files that contain long data with line breaks in a single column and put pressure on the browser’s memory,
It was necessary to use internal APIs not exported by csv-parse, as shown below.
This raised concerns about future functionality.
And, I was unable to apply the AbortController to the CsvParseTransformer and could not implement the purging of its internal buffer.
also,I was unable to implement the csv-parse compliant procedure for interrupting the CsvTransformAPI as AbortController .
Alternative
Therefore, I would like you to provide a Transformer that is guaranteed to work continuously.
** CsvParseTransformer Draft**
** exsample usage of CsvParseTransformer
It is convenient to be able to transfer data(from <input type=file>) to a restful API using pipelining.
The text was updated successfully, but these errors were encountered: