package
Get a GitHub username from an email address
npm install github-usernameGitHub-flavored package documentation.
Across all versions.
Download trend unavailable.
Runtime metadata.
Tagged topics.
Get a GitHub username from an email address
npm install github-usernameimport githubUsername from 'github-username';
console.log(await githubUsername('sindresorhus@gmail.com'));
//=> 'sindresorhus'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.
Type: string
The email address for the user of whom you want the username.
Type: object
Type: string
GitHub personal access token.
Estimated unpacked size across 13 packages.
2.0 MB
Includes dependencies.