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'm using this script
var csv = require('csv'); // node samples/string.js csv() .from.string( '55.90540000776531, 12.159800000637293, "C", 400, "something", "OK", "Test, text", "test@ttt.com"', {comment: '#'} ) .to.array( function(data){ console.log(data) } );
And have an output:
[ [ '55.90540000776531', ' 12.159800000637293', ' "C"', ' 400', ' "something"', ' "OK"', ' "Test', ' text"', ' "test@ttt.com"' ] ]
' "Test', ' text"', is one value and souldn't be spitted.
The text was updated successfully, but these errors were encountered:
Quotes dont follow coma (the field separator). You should remove the spaces or use the "trim" option. The following work:
csv() .from.string( '55.90540000776531, 12.159800000637293, "C", 400, "something", "OK", "Test, text", "test@ttt.com"', trim: true) .to.array (data) -> console.log data[0] next()
Sorry, something went wrong.
fix(csv-parse): improve INVALID_OPENING_QUOTE error message (fix #120)
2189bfb
No branches or pull requests
I'm using this script
And have an output:
' "Test', ' text"', is one value and souldn't be spitted.
The text was updated successfully, but these errors were encountered: