We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I have a CSV file which I'm reading it row wise. There are some rows which are empty but columns do exists.
The issue is that it doesn't read header name which has no data.
How do I read everything ?
function GetRows(headers) { StoreHeaders = headers; StoreHeaders.forEach(header => { let WordsArray = []; let CurrentGroupName; fs.createReadStream('word_groups.csv') .pipe(csv()) .on('data', (data) => { if(data[header]) { WordsArray.push(data[header]); CurrentGroupName = header; } }) .on('end', () => { console.log(CurrentGroupName); }); }); } fs.createReadStream('word_groups.csv') .pipe(csv()) .on('headers', (headers) => { GetRows(headers); });
The text was updated successfully, but these errors were encountered:
Which version of this library are you using? Can you please share a sample of a csv file?
csv
Maybe it is related to #151 which was introduced after 2.3.0 (the last version where the case described in #151 worked as expected).
2.3.0
Sorry, something went wrong.
No branches or pull requests
I have a CSV file which I'm reading it row wise. There are some rows which are empty but columns do exists.
The issue is that it doesn't read header name which has no data.
How do I read everything ?
The text was updated successfully, but these errors were encountered: