Skip to content

Latest commit

 

History

History
32 lines (23 loc) · 688 Bytes

README.md

File metadata and controls

32 lines (23 loc) · 688 Bytes

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.