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
const githubUsername = require('github-username');
githubUsername('sindresorhus@gmail.com').then(username => {
console.log(username);
//=> 'sindresorhus'
});
Returns a Promise
for the username.
Type: string
Email address for the user of whom you want the username.
Type: string
GitHub personal access token.
- github-username-cli - CLI for this module
MIT © Sindre Sorhus