Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

gravatar2

adetoola3MIT0.1.1TypeScript support: included

A quick and easy to use gravatar on node.js

gravatar, gravatar2, globally, recognized, avatar

readme

Build Status

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 adetola.onasanya@gmail.com instead of using the issue tracker.

Credits

License

SMS is an open-sourced package licensed under the MIT license.