gravatar2

A quick and easy to use gravatar on node.js

Usage no npm install needed!

<script type="module">
  import gravatar2 from 'https://cdn.skypack.dev/gravatar2';
</script>

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.