Socket
Socket
Sign inDemoInstall

gravator

Package Overview
Dependencies
28
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    gravator

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


Version published
Weekly downloads
5
increased by400%
Maintainers
1
Install size
316 kB
Created
Weekly downloads
 

Readme

Source

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

  • gravator-cli : CLI Tool for Gravator.

  • twifo : Get user information of a twitter user.

License

MIT © Rishi Giri

Keywords

FAQs

Last updated on 24 May 2017

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc