1// npm i papaparse
2
3// Parse CSV string
4var data = Papa.parse(csv);
5
6// Convert back to CSV
7var csv = Papa.unparse(data);
8
9// Parse local CSV file
10Papa.parse(file, {
11 complete: function(results) {
12 console.log("Finished:", results.data);
13 }
14});
15
16// Stream big file in worker thread
17Papa.parse(bigFile, {
18 worker: true,
19 step: function(results) {
20 console.log("Row:", results.data);
21 }
22});