MotionScript

@motion-script/core


@motion-script/core / parseCSV

Function: parseCSV()

parseCSV(text, options?): DataRecord[]

Defined in: util/csv.ts:33

Parse CSV text into an array of row records keyed by the header row. Handles quoted fields (embedded delimiters, newlines, and "" escapes) and both CRLF/LF line endings. Synchronous and dependency-free, so it's safe to call at module-eval time on text pulled in via a ?raw import.

Parameters

text

string

options?

ParseCSVOptions = {}

Returns

DataRecord[]