Git Product home page Git Product logo

node-libravatar's Introduction

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: '[email protected]', size: 96, default: 'mm', https: false });
}

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

node-libravatar's People

Contributors

chilts avatar coloradocolby avatar fmarier avatar nagesh4193 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.