/parseCSV

Primary LanguageTypeScriptGNU General Public License v3.0GPL-3.0

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