parseCsv
Parses CSV text into its header and rows, cells left as strings.
@internote/canvas-sdkOn this page
import { parseCsv } from '@internote/canvas-sdk';Deliberately minimal: RFC 4180 quoting, with a doubled "" inside a quoted field and delimiters and newlines inside quotes, CRLF line ends, and nothing else. Cells stay strings, since a dataset is columns of strings and the attribute that binds a column does the parsing.
#Signature
(text: string): CsvRows#Parameters
textThe CSV text.
Declared in packages/canvas-sdk/src/data/attachments.ts:68.