npm.devtool.tech
👏 You can access github-username package with using githubUsername variable in browser devtools!
Get a GitHub username from an email address

code/package/bundle size

0B
publish
0B
install
0B
bundle minified
0B
bundle gzipped

github-username

Get a GitHub username from an email address

Install

$ npm install github-username

Usage

const githubUsername = require('github-username');

(async () => {
	console.log(await githubUsername('sindresorhus@gmail.com'));
	//=> 'sindresorhus'
})();

API

githubUsername(email, token?)

Get the GitHub username from an email address if the email can be found in any commits on GitHub.

Returns a Promise<string?> with the username.

email

Type: string

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

token

Type: string

GitHub personal access token.

Related

🔎Explore Package🔎CDN Script

Score

Popularity33/100
Quality83/100
Maintenance100/100