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
Observation: When using node js stream mode and header is true then it results into parsing error
var readStream = fs.createReadStream(__dirname + '/header-sample.csv', 'utf8'); var csvStream = readStream.pipe(Papa.parse(Papa.NODE_STREAM_INPUT, {header: true}));
CSV:
title,name test title 01,test name 01 ,test name 02
Parsing output [ { title: 'test title 01', name: 'test name 01' }, { title: 't',name: 'e', __parsed_extra: [ 's', 't', ' ', 'n', 'a', 'm', 'e', ' ', '0', '2' ] } ] ]
[ { title: 'test title 01', name: 'test name 01' }, { title: 't',name: 'e', __parsed_extra: [ 's', 't', ' ', 'n', 'a', 'm', 'e', ' ', '0', '2' ] } ] ]
Expected:
[ { title: 'test title 01', name: 'test name 01' }, { title: '', name: 'test name 02' } ]
The text was updated successfully, but these errors were encountered:
[fix mholt#706] Fixed CSV parsing issue when first cell is empty
a19775b
Config: header: true, Node JS stream Sample CSV title,name test title 01,test name 01 ,test name 02
[fix mholt#706] Code review changes, reverted existing test cases.
5189fbd
94d7bf9
No branches or pull requests
Observation:
When using node js stream mode and header is true then it results into parsing error
CSV:
Parsing output
[ { title: 'test title 01', name: 'test name 01' }, { title: 't',name: 'e', __parsed_extra: [ 's', 't', ' ', 'n', 'a', 'm', 'e', ' ', '0', '2' ] } ] ]
Expected:
The text was updated successfully, but these errors were encountered: