UNPKG
faster-csv
Version:
latest (1.0.0)
1.0.0
Minimal dependency, fast CSV parser and formatter using modern Node.js APIs.
faster-csv
/
dist
/
parser.d.ts
6 lines
(5 loc)
•
236 B
TypeScript
View Raw
1
2
3
4
5
6
export
interface
ParseCSVOptions
{
headers
?:
boolean
;
separator
?:
string
; }
export
declare
function
parseCSV<T =
Record
<
string
,
string
>>(
filePath
:
string
, { headers, separator }?:
ParseCSVOptions
):
AsyncGenerator
<T |
string
[]>;