Git Product home page Git Product logo

Comments (6)

ronnie-llamado avatar ronnie-llamado commented on June 26, 2024 2

This seems easy enough to support; it's appears to be snakecase with hyphens instead of underscores. I can't see why not.

from humps.

ronnie-llamado avatar ronnie-llamado commented on June 26, 2024 1

That'd be a question for the original repository that this package inspired by: https://github.com/domchristie/humps.

Sounds good, look forward to your PR!

from humps.

ronnie-llamado avatar ronnie-llamado commented on June 26, 2024 1

I don't think there's a standard source to reference for this.

In regards to upper- vs lowercase:
Just from searching around, it appears it is most often defaulted to lowercase (just like snakecase). I can't say for certain though.

In regards to underscores:
I'd imagine underscores do not need to be tested. All other cases would be valid python variables, but kebab-case will not be since dashes are not a valid character inside a variable/method/function name.

from humps.

ificiana avatar ificiana commented on June 26, 2024 1

Unassigning myself... not getting enough time
If anyone wants to contribute in this issue, feel free to

from humps.

ificiana avatar ificiana commented on June 26, 2024

Yeah I wondered the same, I have a draft PR ready for that (can push in 2 weeks perhaps) but I was also wondering why it wasn't included originally. So I brought up this discussion...
anyway, gonna work on this
I too can't see why not to have this feature

from humps.

ificiana avatar ificiana commented on June 26, 2024

@ronnie-llamado I need a bit of help with the test cases, is there a standard source I can refer to for the expected outputs?
for example, API-Response vs api-response vs API-response etc.
also whether to keep leading and trailing _ in kebab-case: _fallback-url__ vs fallback-url etc.

from humps.

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.