UNPKG

@naturalcycles/nodejs-lib

Version:
19 lines 489 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const csvParseLib = require("csv-parse/lib/sync"); /** * Convenience function. * Implementation based on `csv-stringify` lib. * * Options: https://csv.js.org/parse/options/ */ function csvParse(input, opt = {}) { return csvParseLib(input, { columns: true, // cast: true, // header: true, ...opt, }); } exports.csvParse = csvParse; //# sourceMappingURL=csvParse.js.map