UNPKG

@loaders.gl/csv

Version:

Framework-independent loader for CSV and DSV table formats

18 lines 578 B
// loaders.gl // SPDX-License-Identifier: MIT // Copyright (c) vis.gl contributors import { encodeTableAsCSV } from "./lib/encoders/encode-csv.js"; import { CSVFormat } from "./csv-format.js"; export const CSVWriter = { ...CSVFormat, version: 'latest', options: { csv: { useDisplayNames: false } }, text: true, encode: async (table, options) => new TextEncoder().encode(encodeTableAsCSV(table, options)).buffer, encodeTextSync: (table, options) => encodeTableAsCSV(table, options) }; //# sourceMappingURL=csv-writer.js.map