Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/pbrisbin/gravatar

Compute gravatar urls for email addresses
https://github.com/pbrisbin/gravatar

Last synced: about 2 months ago
JSON representation

Compute gravatar urls for email addresses

Awesome Lists containing this project

README

        

# Gravatar

[![CI](https://github.com/pbrisbin/gravatar/actions/workflows/ci.yml/badge.svg)](https://github.com/pbrisbin/gravatar/actions/workflows/ci.yml)

Generate Gravatar image URLs.

## Usage

```hs
gravatar def "[email protected]"
-- => https://www.gravatar.com/avatar/2be502055b6c21ff470730beead2a998
```

For more information, see the [haddocks][].

[haddocks]: http://hackage.haskell.org/package/gravatar/docs/Network-Gravatar.html

## Developing & Tests

```
stack setup
stack build --pedantic --test
```

## Historical Note

This is a clean-room implementation of [this][] existing package (I had no idea
it existed when I wrote this).

[this]: http://hackage.haskell.org/package/gravatar-0.3

There's only a few small differences:

1. I have only one function and a required "options" argument which supports
everything the Gravatar API offers.
2. My `gravatar` operates on a `Text` value

The older package hadn't been updated since 2008 and I was unable to reach Don
on the matter. Hopefully it's OK that I take over the module name.

---

[CHANGELOG](./CHANGELOG.md) | [LICENSE](./LICENSE)