MCPcopy Index your code
hub / github.com/simstudioai/sim / csvParseOptions

Function csvParseOptions

apps/sim/lib/table/import.ts:23–35  ·  view source on GitHub ↗
(delimiter = ',')

Source from the content-addressed store, hash-verified

21 * object keyed by the (first-row) headers.
22 */
23export function csvParseOptions(delimiter = ','): CsvParseOptions {
24 return {
25 columns: true,
26 skip_empty_lines: true,
27 trim: true,
28 relax_column_count: true,
29 relax_quotes: true,
30 skip_records_with_error: true,
31 cast: false,
32 bom: true,
33 delimiter,
34 }
35}
36
37/**
38 * Returns a streaming `csv-parse` parser (a `Transform`/async-iterable). Pipe a

Callers 3

import.test.tsFile · 0.90
createCsvParserFunction · 0.85
parseCsvBufferFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected