Right now I am trying with the library fast-csv doing this:
var stream = fs.createReadStream("./google.csv");
csv
.fromStream(stream, {headers : ["Name","E-mail 1 - Value"], ignoreEmpty: true})
.on("data", function(data){
console.log(data);
})
.on("end", function(){
console.log("done");
});
But it throws this error: "column header mismatch expected: 2 columns got: 57"
Do you know how can I avoid that? should I use a different library/approach
Another problem I am facing is that I get the result in hexadecimal... how can I parse it correctly?
headersproperty from the second argument. That CSV clearly has 57 columns and you only provided the headers for two of them.