Package Exports
- github-username
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (github-username) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
github-username 
Get a GitHub username from an email address
Install
$ npm install github-usernameUsage
const githubUsername = require('github-username');
githubUsername('sindresorhus@gmail.com').then(username => {
console.log(username);
//=> 'sindresorhus'
});API
githubUsername(email, [token])
Returns a Promise for 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