@kctolli/parsecsv
v1.1.1
Published
Parses csv into Json to make it readable in JS
Downloads
4
Readme
ParseCSV
Parses the given CSV text and returns an array of objects representing the parsed data.
- Uses a regular expression to split the CSV text into rows while handling '\r'
- Extracts headers (assumes the first row is the header row)
- Initializes an array to store the parsed data
- Uses the regular expression to split the row while handling '\r'
Licensed under GPL-3.0-or-later