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

Package detail

github-token-user

kevva11MIT3.0.0

Get the Github user from a token

api, github, token, user

readme

github-token-user Build Status

Get the GitHub user from a token

Install

$ npm install --save github-token-user

Usage

const githubTokenUser = require('github-token-user');

githubTokenUser('523ef6911917').then(data => {
    console.log(data);
    //=> {login: johndoe, id: '1', ...}
});

API

githubTokenUser(token)

Returns a promise for an object with the user.

token

Required
Type: string

Token to get the user from.

License

MIT © Kevin Mårtensson