$ cnpm install github-username
Get a GitHub username from an email address
$ npm install github-username
const githubUsername = require('github-username');
(async () => {
console.log(await githubUsername('sindresorhus@gmail.com'));
//=> 'sindresorhus'
})();
Returns a Promise<string>
with the username.
Type: string
Email address for the user of whom you want the username.
Type: string
GitHub personal access token.
MIT © Sindre Sorhus
Copyright 2013 - present © cnpmjs.org