justin

Convert between snake_case, camelCase, and other cases in Gleam.

Package Version Hex Docs

gleam add justin
import justin

pub fn main() {
 justin.snake_case("Hello World")
 // -> "hello_world"

 justin.camel_case("Hello World")
 // -> "helloWorld"

 justin.pascal_case("Hello World")
 // -> "HelloWorld"

 justin.kebab_case("Hello World")
 // -> "hello-world

 justin.sentence_case("hello-world")
 // -> "Hello world"
}

Further documentation can be found at https://hexdocs.pm/justin.

Search Document