Feature request: converting hyphen-case to camelCase
See original GitHub issueAccording to docs:
Config keys are encouraged to be
hyphen-separated
rather thancamelCase
.
So, it would be nice to have this type of conversion as option.
Issue Analytics
- State:
- Created 5 years ago
- Reactions:2
- Comments:6 (4 by maintainers)
Top Results From Across the Web
Convert hyphen-case to camelCase for Component/Directive ...
Currently, specifying a property in camel case like myProperty works with attributes written with hyphens (like my-property).
Read more >Convert hyphens to camel case (camelCase) - Stack Overflow
Try this: var camelCased = myString.replace(/-([a-z])/g, function (g) { return g[1].toUpperCase(); });. The regular expression will match the -i in ...
Read more >How to convert hyphens to camel case in JavaScript
Store the string containing hyphens into variable. Then use the RegExp to replace the hyphens and make the first letter of words as...
Read more >String::CamelCase - MetaCPAN
This module can export two functions, camelize and decamelize . FUNCTIONS. camelize($under_score). convert from under_score text to CamelCase one. decamelize($ ...
Read more >Kebab vs. camel case: How these naming conventions differ
Both kebab case and camel case are naming conventions that try make it easier to read compound words that form a single variable...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Thank you for your advice. This change is quite big and may break compatibility. So, it will be implemented in version 4.
For serializing data class to HOCON it would be logical to make an inverse conversion: transform all property names to hyphen-case, unless exact name is specified by annotation.