@thi.ng/csv
Version:
Customizable, transducer-based CSV parser/object mapper and transformer
8 lines • 532 B
TypeScript
import type { Transducer } from "@thi.ng/transducers";
import type { CSVFormatOpts, CSVRecord, CSVRow } from "./api.js";
export declare function formatCSV(opts?: Partial<CSVFormatOpts>): Transducer<CSVRow | CSVRecord, string>;
export declare function formatCSV(opts: Partial<CSVFormatOpts>, src: Iterable<CSVRow | CSVRecord>): IterableIterator<string>;
export declare const formatCSVString: (opts: Partial<CSVFormatOpts & {
rowDelim: string;
}> | undefined, src: Iterable<CSVRow>) => string;
//# sourceMappingURL=format.d.ts.map