# camel





Supports bidirectional conversion of variable strings between common naming formats.
**[Full documentation →](https://docs.rs/camel/)**
## Quick start
```sh
cargo add camel
```
## Usage
```rust
//! Usage examples for the camel case conversion library.
use camel::{camel_case, flat_case, kebab_case, pascal_case, snake_case, title_case, train_case};
fn main() {
let s = "foo_bar-Baz";
println!("Input: {}", s);
println!("camelCase: {}", camel_case(s, true));
println!("PascalCase: {}", pascal_case(s, true));
println!("kebab-case: {}", kebab_case(s));
println!("snake_case: {}", snake_case(s));
println!("flatcase: {}", flat_case(s));
println!("Train-Case: {}", train_case(s, true));
println!("Title Case: {}", title_case(s, true));
}
```
## License
Published under the [Apache-2.0](./LICENSE) license.
Made by [@UnRUST](https://github.com/un-rust) 💛
<br><br>
<a href="https://github.com/un-rust/camel/graphs/contributors">
<img src="https://contrib.rocks/image?repo=un-rust/camel" />
</a>
---
_🛠️ auto updated with [automd-rs](https://github.com/betterhyq/automd-rs)_