Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

github-username-options

MarcoScabbiolo4MITdeprecated5.0.0

this package has been deprecated

Get a GitHub username from an email address. Allows full access to the HTTP request

github, user, username, email, address, gh, git

readme

github-username-options Build Status

Get a GitHub username from an email address

Based on github-username but allows you to provide additional options to customize how the HTTP request is performed so you can, for example, use this module behind a proxy. At any moment this module can be merged back into the original one and deprecated, see this PR for more information.

Install

$ npm install github-username-options

Usage

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

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

API

githubUsername(email, [token], [options])

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.

options

Type: object

Additional http-request options to use.

License

MIT © Marco Scabbiolo