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

Package detail

github-avatar-url

hemanth29MIT2.0.0

Get github's avatar URL either by username or email.

github, username, email, gravatar, avatar

readme

github-avatar-url Build Status

Get github's avatar URL either by username or email.

Install

$ npm install --save github-avatar-url

Usage

var githubAvatarUrl = require('github-avatar-url');

githubAvatarUrl('hemanth', {token:'foo'})
.then(console.log)
.catch(console.error)

githubAvatarUrl('hemanth.hm@gmail.com', {token:'foo'})
.then(console.log)
.catch(console.error)

API

githubAvatarUrl(input, [token])

input

Required
Type: string

Either email or username

token

Type: string

GitHub access token.

Can be overriden globally with the GITHUB_TOKEN environment variable.

License

MIT © Hemanth.HM