# github-token-user **Repository Path**: mirrors_kevva/github-token-user ## Basic Information - **Project Name**: github-token-user - **Description**: Get the GitHub user from a token - **Primary Language**: Unknown - **License**: MIT - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2020-09-25 - **Last Updated**: 2026-05-24 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # github-token-user [![Build Status](https://travis-ci.org/kevva/github-token-user.svg?branch=master)](https://travis-ci.org/kevva/github-token-user) > Get the GitHub user from a token ## Install ``` $ npm install --save github-token-user ``` ## Usage ```js const githubTokenUser = require('github-token-user'); githubTokenUser('523ef6911917').then(data => { console.log(data); //=> {login: johndoe, id: '1', ...} }); ``` ## API ### githubTokenUser(token) Returns a Promise for a user. #### token Type: `string` Token to get the user from. ## Related * [github-token-user-cli](https://github.com/kevva/github-token-user-cli) - CLI for this module ## License MIT © [Kevin Mårtensson](https://github.com/kevva)