Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/lpil/justin


https://github.com/lpil/justin

Last synced: about 2 months ago
JSON representation

Awesome Lists containing this project

README

        

# justin

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

[![Package Version](https://img.shields.io/hexpm/v/justin)](https://hex.pm/packages/justin)
[![Hex Docs](https://img.shields.io/badge/hex-docs-ffaff3)](https://hexdocs.pm/justin/)

```sh
gleam add justin
```
```gleam
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 .