vlad 6f123ff03e 18.07 | %!s(int64=6) %!d(string=hai) anos | |
---|---|---|
.. | ||
index.js | %!s(int64=6) %!d(string=hai) anos | |
license | %!s(int64=6) %!d(string=hai) anos | |
package.json | %!s(int64=6) %!d(string=hai) anos | |
readme.md | %!s(int64=6) %!d(string=hai) anos |
Get a GitHub username from an email address
$ npm install 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.
MIT © Sindre Sorhus