Casey converts strings to whatever case.
extern crate casey;
use casey::Casey;
fn main() {
println!("{}", "FooBARBaz".to_snakecase()); // => "foo_bar_baz"
println!("{}", "foo_bar_baz".to_camelcase()); // => "fooBarBaz"
}
Casey is released under the MIT license.
- Fork it
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create new Pull Request