Files
bake/contrib/bake-vscode/node_modules/github-username
2019-09-17 13:20:42 -04:00
..
2019-09-17 13:20:42 -04:00
2019-09-17 13:20:42 -04:00
2019-09-17 13:20:42 -04:00
2019-09-17 13:20:42 -04:00

github-username Build Status

Get a GitHub username from an email address

Install

$ npm install github-username

Usage

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.

email

Type: string

Email address for the user of whom you want the username.

token

Type: string

GitHub personal access token.

License

MIT © Sindre Sorhus