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 a user.
Type: string
Token to get the user from.
- github-token-user-cli - CLI for this module
MIT © Kevin Mårtensson