Home > @infiniteobjects/core-library-node > FileSystem > readCsv
Read and parse a CSV file. It respects dot notation on the headers.
Signature:
static readCsv<T = ObjectLike>(file: string): Promise<T[]>;
Parameter | Type | Description |
---|---|---|
file | string |
Returns:
Promise<T[]>
'name,field.nest' => [{name: 'foo', field: { nest: "bar"}}]