Get the GitHub user from a token
$ npm install --save github-token-user
const githubTokenUser = require('github-token-user');
githubTokenUser('523ef6911917').then(data => {
console.log(data);
//=> {login: johndoe, id: '1', ...}
});
Returns a promise for an object with the user.
Required
Type: string
Token to get the user from.
MIT © Kevin Mårtensson