Get a GitHub username from an email address
Only works for users that have their email publicly listed on their profile.
$ npm install --save github-username
var githubUsername = require('github-username');
githubUsername('[email protected]', function (err, username) {
console.log(username);
//=> 'sindresorhus'
});
Required
Type: string
Email address for the user of whom you want the username.
Type: string
GitHub personal access token.
$ npm install --global github-username
$ github-username --help
Usage
github-username <email> [--token OAUTH-TOKEN]
echo <email> | github-username
Example
github-username [email protected]
sindresorhus
MIT © Sindre Sorhus