question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Feature request: converting hyphen-case to camelCase

See original GitHub issue

According to docs:

Config keys are encouraged to be hyphen-separated rather than camelCase.

So, it would be nice to have this type of conversion as option.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:2
  • Comments:6 (4 by maintainers)

github_iconTop GitHub Comments

2reactions
mmorihirocommented, Apr 9, 2018

Thank you for your advice. This change is quite big and may break compatibility. So, it will be implemented in version 4.

2reactions
ov7acommented, Apr 8, 2018

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found