d3 / d3-dsv

A parser and formatter for delimiter-separated values, such as CSV and TSV.
https://d3js.org/d3-dsv
ISC License
436 stars 76 forks source link

csv2json cli throws error when using --auto-type #101

Open marr opened 8 months ago

marr commented 8 months ago

Using the --auto-type flag on the command line fails.

$ csv2json --auto-type in.csv > out.json

Line 31 in dsv2json.js:

const rowConverter = options.autoType ? dsv.autoType : null
                                          ^
ReferenceError: dsv is not defined