Single-word lower/pascal case?
jrr opened this issue · 0 comments
jrr commented
Thanks for this project! It's been really helpful on my project to map between a couple different systems that have different capitalization conventions.
Specifically, I've used pascalCase
and camelCase
, but for single words without spaces. (e.g., converting Foobar
<-> foobar
)
This works fine, but I wonder if it would make sense to have different named operations, that don't have space-inserting behavior. E.g.:
const str: "foobar" = lowerCase("FooBar");
const str : "Foobar" = initialCapitalCase("fooBar");
I recognize that there are so many specific combinations, that it could get out of hand quickly (and be difficult to name them all). Maybe there's another way to design the API? (composable functions/types?)