Skip to content
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

Feature request: reverse transformation #70

Open
codekiln opened this issue Dec 15, 2020 · 2 comments
Open

Feature request: reverse transformation #70

codekiln opened this issue Dec 15, 2020 · 2 comments

Comments

@codekiln
Copy link

codekiln commented Dec 15, 2020

I'd prefer to use camelcase-keys as a one-stop library for converting a snake case API result into camelcase for client side JS, and then converting client side JS camelcase back into snake case for sending back to the same API.

Other libraries like decamelize-keys and snakecase-keys exist, but from a library consumer's perspective it would be preferable to have symmetrical transformations in a single library.

Please consider adding this use case to the supported feature set.

@sindresorhus
Copy link
Owner

I'm open to it. What would the API look like?

@sindresorhus
Copy link
Owner

I decided to make it a separate package for now: https://github.com/sindresorhus/decamelize-keys

I may move it into this package in the future.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants