github-username
Get a GitHub username from an email address
Last updated a year ago by sindresorhus .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install github-username 
SYNC missed versions from official npm registry.

github-username Build Status

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])

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

License

MIT © Sindre Sorhus

Current Tags

  • 5.0.1                                ...           latest (a year ago)

12 Versions

  • 5.0.1                                ...           a year ago
  • 5.0.0                                ...           a year ago
  • 4.1.0                                ...           3 years ago
  • 4.0.0                                ...           3 years ago
  • 3.0.0                                ...           4 years ago
  • 2.1.0                                ...           5 years ago
  • 2.0.0                                ...           5 years ago
  • 1.1.1                                ...           5 years ago
  • 1.1.0                                ...           5 years ago
  • 1.0.0                                ...           6 years ago
  • 0.1.1                                ...           6 years ago
  • 0.1.0                                ...           6 years ago
Maintainers (1)
Downloads
Today 424
This Week 10,572
This Month 42,597
Last Day 607
Last Week 11,221
Last Month 45,794
Dependencies (1)
Dev Dependencies (3)
Dependents (128)

Copyright 2014 - 2017 © taobao.org |