gravatar2
v0.1.1
Published
A quick and easy to use gravatar on node.js
Downloads
4
Maintainers
Readme
Gravatar - Node.js
Gravatar provides a clean, simple API Gravatar service.
Contents
Installation
Via Bash in Terminal
yarn add gravatar2
Add manually in package.json
Begin by installing gravatar2
by editing your project's package.json
file. Just add
"dependencies": {
...
"gravatar2": "^0.1.1"
}
Usage
Using gravatar is quite simple.
import Gravatar from 'gravatar2';
const gravatar = new Gravatar();
gravatar.url(email);
gravatar.url(email, options);
gravatar.url(email, options, secured);
gravatar.profile(email);
gravatar.profile(email, options);
gravatar.profile(email, options, secured);
gravatar.isGravatar(email);
Change log
Please see CHANGELOG for more information what has changed recently.
Contributing
Please see CONTRIBUTING and CONDUCT for details.
Security
If you discover any security related issues, please email [email protected] instead of using the issue tracker.
Credits
- Heavily inspired by (https://github.com/emerleite/node-gravatar/)
License
SMS is an open-sourced package licensed under the MIT license.