import { csvDecode } from "https://deno.land/x/simple_utility@v2.3.1/src/pure_ext/csv.ts";
Convert from CSV string to object array.
If parsing failed of cell value use default (def
) value.
Convert to same type as default value.
Examples
Example 1
Example 1
const list = csvDecode("aaa,bbb\n123,true", {
aaa: 0,
bbb: false
});
Type Parameters
T extends Record<keyof T, string | number | boolean>
Parameters
def: T