You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
zsmj dd41bae746 first commit 3 years ago
..
index.js first commit 3 years ago
license first commit 3 years ago
package.json first commit 3 years ago
readme.md first commit 3 years ago

readme.md

github-username Build Status

Get a GitHub username from an email address

Only works for users that have their email publicly listed on their profile.

Install

$ npm install --save 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