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
/
formatter.d.ts
7 lines
(6 loc)
•
279 B
TypeScript
View Raw
1
2
3
4
5
6
7
export
interface
FormatCSVOptions
{
headers
?:
boolean
;
separator
?:
string
; }
export
type
CSVRow
=
string
[] |
Record
<
string
,
string
|
number
>;
export
declare
function
formatCSV
(
outputPath
:
string
,
rows
:
CSVRow
[], { headers, separator }?:
FormatCSVOptions
):
Promise
<
void
>;