UNPKG

faster-csv

Version:

Minimal dependency, fast CSV parser and formatter using modern Node.js APIs.

7 lines (6 loc) 279 B
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>;