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

Package detail

avatar-api

Get a user's real name and photo from their email address. A Username and password is required, which you can get from http://www.avatarapi.com

email, profile, avatar, icon

readme

avatar-api

Get a user's real name and photo from their email address. A Username and password is required, which you can get from http://www.avatarapi.com

Installation

npm install avatar-api --save

Usage

var api = require('avatar-api');

api.AvatarAPI("jenny.smith@gmail.com","***Your Username***","***Your Password****",function(data){
  console.log(data.profile.Name.toString());
  console.log(data.profile.Image.toString());
});

Dependencies

  • xml2js: Simple XML to JavaScript object converter.

Dev Dependencies

A Username and password is required, which you can get from http://www.avatarapi.com

License

ISC