I'm using the fast-csv node library to parse a csv-file that looks like this
var stream = fs.createReadStream('./tmp_dir/'+files.fileUploaded.name);
var csvStream = csv()
.on("data", function(data){
console.log(data);
})
.on("end", function(){
console.log("done");
});
stream.pipe(csvStream);
I wonder if it is possible to do the following things
- To see how many rows in the csv file that could not be parsed?
- Record start and end time for parsing of the file?