[][src]Function voca_rs::case::kebab_case

pub fn kebab_case(subject: &str) -> String

Converts the subject to kebab case.

Arguments

Example

use voca_rs::*;
case::kebab_case("goodbye blue sky");
// => "goodbye-blue-sky"
case::kebab_case("GoodbyeBlueSky");
// => "goodbye-blue-sky"
case::kebab_case("-Goodbye-Blue-Sky-");
// => "goodbye-blue-sky"
use voca_rs::Voca;
"goodbye blue sky"._kebab_case();
// => "goodbye-blue-sky"