element.version === currentVersion)) { versionNodes.unshift({ version: currentVersion, url: "#" }); } document.querySelector("#project-version").innerHTML = versionNodes.reduce( (acc, element) => { const status = currentVersion === element.version ? "selected disabled" : ""; return ` ${acc} `; }, `
glevatar · v0.1.2

Glevatar

Test Status Package Version Hex Docs

Easily create Gravatar URLs in Gleam, supporting both Erlang and JavaScript 🎀

Installation

To add the library, simply execute the following command:

gleam add glevatar

Compatibility

This library requires Gleam version 1.0.0 or later.

Example

"bob@example.com"
|> glevatar.new()
|> glevatar.set_size(400)
|> glevatar.to_string()
// "https://gravatar.com/avatar/5ff860bf1190596c7188ab851db691f0f3169c453936e9e1eba2f9a47f7a0018?s=400"

Documentation

Consult the HexDocs for API reference.

License

Glevatar is licensed under the MIT license.

Search Document