Convert Case
Converts to and from various cases.
Rust Library
Convert case was written in Rust and is ready to be used inline with your rust code as a library. You can read the API documentation on docs.rs. Bonus: this crate has 0 dependencies!
Command Line Interface ccase
A command line utility ccase
was made to leverage the tools in this library. You can read about it at the github repository.
Cases
This is list of cases that convert_case supports. 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 |
Alternating | mY vArIaBlE nAmE |