https://github.com/gravityblast/gravatar
Gravatar URLs module for Elixir
https://github.com/gravityblast/gravatar
Last synced: 5 days ago
JSON representation
Gravatar URLs module for Elixir
- Host: GitHub
- URL: https://github.com/gravityblast/gravatar
- Owner: gravityblast
- License: mit
- Created: 2016-05-08T16:45:48.000Z (about 10 years ago)
- Default Branch: master
- Last Pushed: 2016-05-09T16:48:10.000Z (about 10 years ago)
- Last Synced: 2026-03-28T14:59:00.599Z (2 months ago)
- Language: Elixir
- Homepage:
- Size: 5.86 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Gravatar
Gravatar URLs module for Elixir.
## Installation
```elixir
def deps do
[{:gravatar, "~> 0.1.0"}]
end
```
## Usage
```elixir
Gravatar.new("test@example.com")
|> to_string
# "http://www.gravatar.com/avatar/55502f40dc8b7c769880b10874abc9d0"
Gravatar.new("test@example.com")
|> Gravatar.size(500)
|> to_string
# "http://www.gravatar.com/avatar/55502f40dc8b7c769880b10874abc9d0?s=500"
Gravatar.new("test@example.com")
|> Gravatar.size(500)
|> Gravatar.secure
|> to_string
# "https://www.gravatar.com/avatar/55502f40dc8b7c769880b10874abc9d0?s=500"
```
Check the [online documentation](https://hexdocs.pm/gravatar/) for more information.
## Author
* [Andrea Franz](http://gravityblast.com)
## Contributing
1. Fork it
2. Create your feature branch (`git checkout -b my-new-feature`)
3. Commit your changes (`git commit -am 'Add some feature'`)
4. Push to the branch (`git push origin my-new-feature`)
5. Create new Pull Request