Get the avatar of a GitHub user
$ npm install --save gh-avatar
const ghAvatar = require('gh-avatar');
ghAvatar('sindresorhus').then(avatar => {
console.log(avatar);
//=> 'https://avatars.githubusercontent.com/u/170270?v=3'
});
Returns a promise for a URL to the avatar.
Type: string
GitHub username.
Type: string
GitHub personal access token.
MIT © Sindre Sorhus