Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/bunopnu/glevatar
Gravatar URLs for Gleam
https://github.com/bunopnu/glevatar
gleam gravatar gravatar-image
Last synced: about 1 month ago
JSON representation
Gravatar URLs for Gleam
- Host: GitHub
- URL: https://github.com/bunopnu/glevatar
- Owner: bunopnu
- License: mit
- Created: 2023-10-20T15:48:19.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2024-04-13T03:52:44.000Z (8 months ago)
- Last Synced: 2024-04-24T03:04:19.815Z (8 months ago)
- Topics: gleam, gravatar, gravatar-image
- Language: Gleam
- Homepage: https://hex.pm/packages/glevatar
- Size: 20.5 KB
- Stars: 6
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-gleam - glevatar - [📚](https://hexdocs.pm/glevatar/) - Easily create Gravatar URLs in Gleam (Packages / API Clients)
README
# 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/)Easily create Gravatar URLs in Gleam, supporting both Erlang and JavaScript 🎀
## Installation
To add the library, simply execute the following command:
```sh
gleam add glevatar
```## Compatibility
This library requires Gleam version `1.0.0` or later.
## 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/glevatar/) for API reference.
## License
Glevatar is licensed under the MIT license.