ghu
ghusers
npm i ghusers
ghu

ghusers

A node library to interact with the GitHub users API

by Rod Vagg

0.2.3 (see all)License:MITTypeScript:Not Found
npm i ghusers
Readme

ghusers

Build Status

A node library to interact with the GitHub users API

NPM

Example usage

const ghusers     = require('ghusers')
    , authOptions = { user: 'rvagg', token: '24d5dee258c64aef38a66c0c5eca459c379901c2' }

// get user by login/username
ghusers.get(authOptions, 'substack', function (err, user) {
  // object containing full details of @substack
  console.log(user)
})

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 (err, authData) {
  ghusers.get(authData, 'rvagg', function (err, user) {
    console.log(user)
  })
})

License

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.

Downloads/wk

6

GitHub Stars

10

LAST COMMIT

7yrs ago

MAINTAINERS

2

CONTRIBUTORS

0

OPEN ISSUES

0

OPEN PRs

0
VersionTagPublished
0.2.3
latest
7yrs ago
No alternatives found
No tutorials found
Add a tutorial

Rate & Review

100
No reviews found
Be the first to rate