New issue
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
Excel issue needs option to force delimeter.wrap #188
Comments
In order to support the use case of keeping Booleans as String values that can easily be converted back with csv2json, this commit adds a new option `wrapBooleans` which will allow users a way to make this possible Fixes #188
In order to support the use case of keeping Booleans as String values that can easily be converted back with csv2json, this commit adds a new option `wrapBooleans` which will allow users a way to make this possible Fixes #188
In order to support the use case of keeping Booleans as String values that can easily be converted back with csv2json, this commit adds a new option `wrapBooleans` which will allow users a way to make this possible Fixes #188
In order to support the use case of keeping Booleans as String values that can easily be converted back with csv2json, this commit adds a new option `wrapBooleans` which will allow users a way to make this possible Fixes #188
Thanks for reporting this @peacechen. I can definitely see the use case for forcing boolean values to be wrapped since Excel is interpreting them when not wrapped in quotes. I've added a |
Thanks for the fast turn-around! A small TS issue: passing in
It looks like Line 45 in 258f048
Update: I created a PR #190 to add |
Sorry about that - I'll merge your PR and will get that released in |
Thanks again for the fast merge and release 😄 |
Excel automatically converts
false
boolean types toFALSE
. Users who load and edit the CSV in Excel end up with booleans values that are uppercaseTRUE/FALSE
instead of lowercase. This does not parse back properly withcsv2json
. If I manually edit the CSV and wrap the boolean true/false in quotes, it remains lowercase after editing in Excel.The
delimeter.wrap
option has no effect for all the types that I've tried. This feature had been requested in #133 but wasn't implemented.The alternative would be to modify
csv2json
to be able to parse back TRUE/FALSE boolean values. That would be messier though.Background Information
3.10.3
Chrome 86
The issue I'm reporting is with:
I have...
Expected Behavior
"true", "false"
Actual Behavior
true, false
Data Sample
CSV:
Code Example
The text was updated successfully, but these errors were encountered: