Describe the bug
Trying to parse a csv file using stream API throws an error as "list" argument must be an Array of Buffers
This error has occurred only with the latest csv-parse@5.0.1 package version.
To Reproduce
Node version 14.16.1
csv-parse version 5.0.1
Run the attached code for a csv file and would throw an error as "list" argument must be an Array of Buffers
const csvParser = require("csv-parse");
fs.createReadStream(filepath).pipe(csvParser.parse()).on('data', data => {
console.log(data);
});
Describe the bug
Trying to parse a csv file using stream API throws an error as "list" argument must be an Array of Buffers
This error has occurred only with the latest csv-parse@5.0.1 package version.
To Reproduce
Node version 14.16.1
csv-parse version 5.0.1
Run the attached code for a csv file and would throw an error as "list" argument must be an Array of Buffers