3.0.0 • Published 8 years ago

github-token-user v3.0.0

Weekly downloads
2
License
MIT
Repository
github
Last release
8 years ago

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.

Related

License

MIT © Kevin Mårtensson