node package manager


Interact with the GitHub users API


A node library to interact with the GitHub users API

const ghusers     = require('ghusers')
    , authOptions = { user: 'rvagg', token: '24d5dee258c64aef38a66c0c5eca459c379901c2' }
// get user by login/username 
ghusers.get(authOptions, 'substack', function (erruser) {
  // object containing full details of @substack 

The auth data is compatible with ghauth so you can just connect them together to make a simple command-line application:

const ghauth      = require('ghauth')
    , ghusers     = require('ghusers')
    , authOptions = {
          configName : 'team-lister'
        , scopes     : [ 'user' ]
ghauth(authOptions, function (errauthData) {
  ghusers.get(authData, 'rvagg', function (erruser) {

ghusers is Copyright (c) 2014 Rod Vagg @rvagg and licensed under the MIT licence. All rights not explicitly granted in the MIT license are reserved. See the included LICENSE file for more details.