Skip to content

lpil/justin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages