Giter Site home page Giter Site logo

Comments (4)

wdavidw avatar wdavidw commented on September 2, 2024 3

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.

 avatar commented on September 2, 2024 2

@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.

ldegen avatar ldegen commented on September 2, 2024

@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.

wdavidw avatar wdavidw commented on September 2, 2024

@ldegen thanks you, you said it all.

from node-csv-parse.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.