Skip to content

API Reference


API Reference / parseCsv

Function: parseCsv() ​

parseCsv(text): Record<string, string>[]

Defined in: src/resources/Instruments.ts:298

Minimal RFC 4180 CSV reader — handles quoted fields, escaped quotes and both line ending conventions. The scrip master has no embedded newlines, but DISPLAY_NAME does contain commas inside quotes.

Parameters ​

text ​

string

Returns ​

Record<string, string>[]

Community project — not affiliated with Dhan. MIT License.