@naturalcycles/nodejs-lib
Version:
Standard library for Node.js
19 lines • 489 B
JavaScript
;
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