Socket
Book a DemoInstallSign in
Socket

github-token-user

Package Overview
Dependencies
Maintainers
2
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

github-token-user

Get the Github user from a token

latest
Source
npmnpm
Version
3.0.0
Version published
Weekly downloads
1
-66.67%
Maintainers
2
Weekly downloads
 
Created
Source

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.

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

License

MIT © Kevin Mårtensson

Keywords

api

FAQs

Package last updated on 11 Sep 2016

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts