Skip to content

likerRr/github-username

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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('[email protected]').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.

Related

License

MIT © Sindre Sorhus

About

Get a GitHub username from an email address

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 100.0%