Get the avatar of a GitHub user
npm install gh-avatar
import ghAvatar from 'gh-avatar';
console.log(await ghAvatar('sindresorhus'));
//=> 'https://avatars.githubusercontent.com/u/170270?v=3'
Returns a Promise<string>
with the URL to the avatar.
Type: string
GitHub username.
Type: object
Type: string
GitHub personal access token.