Napping Panda Missionaries
Have opinions about JavaScript? We want to hear them. Take the 2018 JavaScript Ecosystem Survey »

gravator

1.0.2 • Public • Published

GRAVATOR

An unofficial API for Gravatar.com mostly for scrapping user data.

Install

$ npm install --save gravator

Usage

  • username of a gravatar user is always foo@example.com
'use strict';
 
const gravator = require('gravator');
 
gravator('username', 'options').then(res => {
    console.log(res);
    // {opts: 'data'}
});
 
gravator('foo', 'hash').then(res => {
    console.log(res);
    // {opts: 'foo'}
})

API

gravator(username, options)

username

Type: string

options

Type: string

Options:

  • id

Example

gravator('matt', 'id').then(res => {
    console.log(res);
    // // {opts: '5'}
});
  • hash

  • requestHash

  • profileUrl

  • preferredUsername

  • thumbnailUrl

  • photos

  • name

  • ims

  • displayName

  • aboutMe

  • currentLocation

  • emails

  • accounts

  • urls

Related

  • gravator-cli : CLI Tool for Gravator.

  • twifo : Get user information of a twitter user.

License

MIT © Rishi Giri

install

npm i gravator

Downloadsweekly downloads

8

version

1.0.2

license

MIT

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar
Report a vulnerability