-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
78 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
# Changelog | ||
|
||
## v1.0.0 - 2023-12-30 | ||
|
||
- Initial release. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,32 @@ | ||
# 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/) | ||
|
||
## Quick start | ||
|
||
```sh | ||
gleam run # Run the project | ||
gleam test # Run the tests | ||
gleam shell # Run an Erlang shell | ||
gleam add justin | ||
``` | ||
```gleam | ||
import justin | ||
## Installation | ||
pub fn main() { | ||
justin.snake_case("Hello World") | ||
// -> "hello_world" | ||
If available on Hex this package can be added to your Gleam project: | ||
justin.camel_case("Hello World") | ||
// -> "helloWorld" | ||
```sh | ||
gleam add justin | ||
justin.pascal_case("Hello World") | ||
// -> "HelloWorld" | ||
justin.kebab_case("Hello World") | ||
// -> "hello-world | ||
justin.sentence_case("hello-world") | ||
// -> "Hello world" | ||
} | ||
``` | ||
|
||
and its documentation can be found at <https://hexdocs.pm/justin>. | ||
Further documentation can be found at <https://hexdocs.pm/justin>. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters