Comments (4)
there are problems. I'm french and I would expect 'vrai' to cast to true
. Same goes with an empty string which could cast to false
or just an empty string which seems much more appropriate.
from node-csv-parse.
@wdavidw ok, and because it doesn't work in french, auto_parse
should continue to miserably fail on standard boolean values?
Common, re-open and accept that pull request for God sake.
Thank you,
from node-csv-parse.
@fboutin-pmc: Please, tone it down a bit. Everything is cool. :-)
@wdavidw was right to reject my PR. The behavior would have been very specific to the particular way Javascript (and a handful of other programming languages) represent boolean literals. There are no "standard boolean values" as far as CSV is concerned. You would have to support all sorts of boolean representations for this module to still be functionally 'closed' -- if this makes any sense; I'm afraid I don't know the correct English expression.
Anyway, if I read the documentation correctly, you can just pass your own application-specific value parser function to auto_parse
. I think this is quite an adequate solution.
from node-csv-parse.
@ldegen thanks you, you said it all.
from node-csv-parse.
Related Issues (20)
- Invalid Opening Quote with utf-16 little endian content HOT 6
- Invalid opening quote, even if working in the online converter HOT 1
- Skip event for error line should provide raw data HOT 4
- Module not found: Error: Can't resolve 'stream' in node_modules\csv-parse\lib\es5 HOT 10
- All rows skipped when header's column count is less than the following row's column count HOT 1
- trim() doesn't remove all whitespace characters HOT 1
- Which is the valid encoding option for 'ISO-8859-1' ? HOT 1
- strange behavior in scopes HOT 1
- csv-parse adds empty column that does not exist HOT 3
- skip_empty_lines property is not working as expected HOT 5
- events.js:174 throw er; // Unhandled 'error' event HOT 1
- Object property created from the first column is inaccsesible HOT 1
- Comma inside cell HOT 1
- Samples test suite doesn't execute any files
- Expose columns in info object HOT 3
- UTF 16 encoding detection is not working with quotes values HOT 1
- Return error HOT 5
- column headers do not appear to be used if from_line > 1 HOT 4
- Switch to camelCase option names HOT 1
- TSV files with quotes are not parsed correctly
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from node-csv-parse.