github-username 
Get a GitHub username from an email address
Install
$ npm install github-username
Usage
const githubUsername = require('github-username');
(async () => {
console.log(await githubUsername('sindresorhus@gmail.com'));
//=> 'sindresorhus'
})();API
githubUsername(email, [token])
Returns a Promise<string> with the username.
Type: string
Email address for the user of whom you want the username.
token
Type: string
GitHub personal access token.
Related
- github-username-cli - CLI for this module
License
MIT © Sindre Sorhus