Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

gravator

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

gravator

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

  • 1.0.2
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
3
decreased by-25%
Maintainers
1
Weekly downloads
 
Created
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

Package last updated on 24 May 2017

Did you know?

Socket

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
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc