Converts to and from various cases.
``` $ ccase -t title supermario64 Super Mario 64
$ ccase -f snake -t title 2020-04-15mycat_cali 2020-04-16 My Cat Cali
$ ccase -t camel "convert to case" convertToCase ```
Convert case will determine word boundaries automatically for any input. You can also supply a parsing method by supplying a case with the --from -f
option for more accuracy.
Convert case was written in Rust and is ready to be used inline with your rust code as a library.
You can also view the list of cases using the --list -l
option. Some cases are simply aliases of others.
| Case | Example | | ---- | ------- | | Upper | MY VARIABLE NAME | | Lower | my variable name | | Title | My Variable Name | | Toggle | mY vARIABLE nAME | | Camel | myVariableName | | Pascal | MyVariableName | | UpperCamel | MyVariableName | | Snake | my_variable_name | | UpperSnake | MY_VARIABLE_NAME | | ScreamingSnake | MY_VARIABLE_NAME | | Kebab | my-variable-name | | Cobol | MY-VARIABLE-NAME | | Train | My-Variable-Name | | Flat | myvariablename | | UpperFlat | MYVARIABLENAME |
If you want more cases, they are easy to implement. Contact me with a suggestion!