JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 812311
  • Score
    100M100P100Q224794F
  • License MIT

Get a GitHub username from an email address

Package Exports

  • github-username

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (github-username) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

github-username Build Status

Get a GitHub username from an email address

Install

$ npm install github-username

Usage

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

githubUsername('sindresorhus@gmail.com').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.

License

MIT © Sindre Sorhus