Socket
Book a DemoInstallSign in
Socket

github-avatar-url

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

github-avatar-url

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

latest
Source
npmnpm
Version
2.0.0
Version published
Maintainers
1
Created
Source

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

Keywords

github

FAQs

Package last updated on 03 Apr 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