Get github's avatar URL either by `username` or `email`.
MIT License
Get github's avatar URL either by
username
or
$ npm install --save github-avatar-url
var githubAvatarUrl = require('github-avatar-url');
githubAvatarUrl('hemanth', {token:'foo'})
.then(console.log)
.catch(console.error)
githubAvatarUrl('[email protected]', {token:'foo'})
.then(console.log)
.catch(console.error)
Required
Type: string
Either email
or username
Type: string
GitHub access token.
Can be overriden globally with the GITHUB_TOKEN
environment variable.
MIT © Hemanth.HM