npm stats
  • Search
  • About
  • Repo
  • Sponsor
  • more
    • Search
    • About
    • Repo
    • Sponsor

Made by Antonio Ramirez

github-token-user

3.0.0

@kevva

npmHomeRepoSnykSocket
Downloads:11
$ npm install github-token-user
DailyWeeklyMonthlyYearly

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

  • github-token-user-cli - CLI for this module

License

MIT © Kevin Mårtensson