3.0.0 • Published 5 years ago

libravatar v3.0.0

Weekly downloads
20
License
MIT
Repository
github
Last release
5 years ago

node-libravatar

A library intended for integrating with the federated Libravatar avatar hosting service from within your Node.js applications. The project was inspired by a Gravatar library from Emerson Macedo.

See the project page for the issue tracker and downloads.

Build Status Dependencies Status Dev Dependencies Status MIT license

Installation

To install using npm:

$ npm install libravatar

NPM

Usage

To generate the correct avatar URL based on someone's email address, use the following:

const libravatar = require('libravatar');
...
const get_libravatar_url = async () => {
  const avatar_url = await libravatar.get_avatar_url({ email: 'person@example.com', size: 96, default: 'mm', https: false });
}

See the Libravatar documentation for more information on the special values for the "default" parameter.

3.0.0

5 years ago

2.0.0

12 years ago

1.1.1

12 years ago

1.1.0

12 years ago

1.0.1

13 years ago