Public bug reported:

Reproduction Steps:

1. `apt install node-d3-dsv`
2. Create a simple CSV file as below:

```csv
Name,Species,Color
Kermit,Frog,Green
Fozzy,Bear,Yellow
Animal,Beast,Red
```

3. Run `csv2json /path/to/csv_file.csv`
4. See an error like this:

```shell
$ csv2json /tmp/test.csv
/usr/share/nodejs/d3-dsv/dist/d3-dsv.js:69
      DELIMITER = delimiter.charCodeAt(0);
                            ^

TypeError: Cannot read property 'charCodeAt' of undefined
    at Object.dsv [as dsvFormat] (/usr/share/nodejs/d3-dsv/dist/d3-dsv.js:69:29)
    at Object.<anonymous> (/usr/share/nodejs/d3-dsv/bin/dsv2json:23:20)
    at Module._compile (internal/modules/cjs/loader.js:999:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:1027:10)
    at Module.load (internal/modules/cjs/loader.js:863:32)
    at Function.Module._load (internal/modules/cjs/loader.js:708:14)
    at Function.executeUserEntryPoint [as runMain] 
(internal/modules/run_main.js:60:12)
    at internal/main/run_main_module.js:17:47
```

** Affects: node-d3-dsv (Ubuntu)
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2100627

Title:
  csv2json crashes on basic usage

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/node-d3-dsv/+bug/2100627/+subscriptions


-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to