justin

Functions

pub fn camel_case(text: String) -> String

Convert a string to a camelCase.

Examples

camel_case("Hello World")
// -> "helloWorld"
pub fn kebab_case(text: String) -> String

Convert a string to a kebab-case.

Examples

kabab_case("Hello World")
// -> "hello-world
pub fn pascal_case(text: String) -> String

Convert a string to a PascalCase.

Examples

pascal_case("Hello World")
// -> "HelloWorld"
pub fn sentence_case(text: String) -> String

Convert a string to a Sentence case.

Examples

sentence_case("hello-world")
// -> "Hello world
pub fn snake_case(text: String) -> String

Convert a string to a snake_case.

Examples

snake_case("Hello World")
// -> "hello_world"
Search Document