Tuesday, 1 October 2019

[Help] Papaparse stream read and write to csv?

So I'm using the papaparse npm library to parse csv files on node.jsFrom there, I am utilizing their "step" function to handle large files (to be consistent, let's assume the csv has 10 columns with 100,000 rows of data with a header row) uploaded from frontend.Inside the step function, I am making edits to the data, etc.Basically, I'm having trouble writing those new changes to a new csv file with a header row hardcoded. I've tried populating a 2D array but no luck since once the step function is finished processing every single row, I get async issues so the array shows up blank.Please help. Thank you.

Submitted October 02, 2019 at 06:44AM by nathangonz17

No comments:

Post a Comment