-
Notifications
You must be signed in to change notification settings - Fork 0
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
1 changed file
with
21 additions
and
10 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 |
---|---|---|
@@ -1,22 +1,33 @@ | ||
# glevatar | ||
# Glevatar | ||
|
||
[![Test Status](https://github.com/bunopnu/glevatar/actions/workflows/test.yml/badge.svg)](https://github.com/bunopnu/glevatar/actions/workflows/test.yml) | ||
[![Package Version](https://img.shields.io/hexpm/v/glevatar)](https://hex.pm/packages/glevatar) | ||
[![Hex Docs](https://img.shields.io/badge/hex-docs-ffaff3)](https://hexdocs.pm/glevatar/) | ||
|
||
## Quick start | ||
|
||
```sh | ||
gleam run # Run the project | ||
gleam test # Run the tests | ||
gleam shell # Run an Erlang shell | ||
``` | ||
Easily create Gravatar URLs in Gleam, supporting both Erlang and JavaScript 🎀 | ||
|
||
## Installation | ||
|
||
If available on Hex this package can be added to your Gleam project: | ||
To add the library, simply execute the following command: | ||
|
||
```sh | ||
gleam add glevatar | ||
``` | ||
|
||
and its documentation can be found at <https://hexdocs.pm/glevatar>. | ||
## Example | ||
|
||
```gleam | ||
"[email protected]" | ||
|> glevatar.new() | ||
|> glevatar.set_size(400) | ||
|> glevatar.to_string() | ||
// "https://gravatar.com/avatar/5ff860bf1190596c7188ab851db691f0f3169c453936e9e1eba2f9a47f7a0018?s=400" | ||
``` | ||
|
||
## Documentation | ||
|
||
Consult the [HexDocs](https://hexdocs.pm/glavatar/) for API reference. | ||
|
||
## License | ||
|
||
Glevatar is licensed under the MIT license. |