Closed lgandras closed 1 year ago
I tried to replicate your issue with much success. The sample executes as expected:
cd node-csv
git pull
cd demo/issues-cjs
node lib/399.js
Honestly, I doubt there could be any global state sharing. No single object is defined globally and we don't use any dependency beside Node.js.
Closing, feel free to re-open.
Describe the bug
Creating two instances of csv-parse without consuming the first one affects the second one. It seems like csv-parse holds global state.
To Reproduce
test.js
:test.csv
:Command:
Output:
(As expected) If you uncomment the first line and reexecute, you'll; get: