ghutils
A collection of utility functions for dealing with the GitHub API
Last updated 11 years ago by rvagg .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ npm install ghutils 
SYNC missed versions from official npm registry.

ghutils

Build Status

A collection of utility functions for dealing with the GitHub API

NPM

Used by:

  • ghissues - a Node.js library to interact with the GitHub Issues API
  • ghpulls - a Node.js library to interact with the GitHub Pull Request API
  • ghrepos - a Node.js library to interact with the GitHub Repos API
  • ghusers - a Node.js library to interact with the GitHub Users API
  • ghteams - a Node.js library to interact with the GitHub Teams API
  • ghreleases - a Node.js library to interact with the GitHub Releases API

API

makeOptions(auth, options)

Helper to make options to pass to jsonist given a GitHub auth from ghauth and any additional options.

handler(callback)

Takes a JSON response from the GitHub API and turns any errors and applies them properly to the callback.

ghpost(auth, url, data, options, callback)

Make a GitHub API compatible POST request to the given URL via jsonist, uses makeOptions() to extend the options. Requires a GitHub auth from ghauth and any additional options.

ghget(auth, url, options, callback)

Make a GitHub API compatible GET request to the given URL via jsonist, uses makeOptions() to extend the options. Requires a GitHub auth from ghauth and any additional options.

lister(auth, urlbase, options, callback)

Given a paginated url resource, recursively fetch all available pages of data and return an array containing the complete list.

apiRoot

The api root url 'https://api.github.com'.

License & Copyright

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

Current Tags

  • 5.0.17                                ...           latest (25 days ago)

34 Versions

  • 5.0.17                                ...           25 days ago
  • 5.0.16                                ...           a month ago
  • 5.0.15                                ...           a month ago
  • 5.0.14                                ...           4 months ago
  • 5.0.13                                ...           4 months ago
  • 5.0.12                                ...           4 months ago
  • 5.0.11                                ...           4 months ago
  • 5.0.10                                ...           4 months ago
  • 5.0.9                                ...           4 months ago
  • 5.0.8                                ...           5 months ago
  • 5.0.7                                ...           5 months ago
  • 5.0.6                                ...           5 months ago
  • 5.0.5                                ...           6 months ago
  • 5.0.4                                ...           7 months ago
  • 5.0.3                                ...           7 months ago
  • 5.0.2                                ...           10 months ago
  • 5.0.1                                ...           10 months ago
  • 5.0.0                                ...           10 months ago
  • 4.0.0                                ...           7 years ago
  • 3.2.6                                ...           8 years ago
  • 3.2.5                                ...           8 years ago
  • 3.2.4                                ...           9 years ago
  • 3.2.2                                ...           9 years ago
  • 3.2.1                                ...           10 years ago
  • 3.2.0                                ...           11 years ago
  • 3.1.0                                ...           11 years ago
  • 3.0.1                                ...           11 years ago
  • 3.0.0                                ...           11 years ago
  • 2.0.0                                ...           11 years ago
  • 1.3.0                                ...           11 years ago
  • 1.2.1                                ...           11 years ago
  • 1.2.0                                ...           11 years ago
  • 1.1.0                                ...           11 years ago
  • 1.0.0                                ...           12 years ago
Maintainers (1)
Downloads
Total 160
Today 0
This Week 37
This Month 126
Last Day 0
Last Week 38
Last Month 8
Dependencies (3)
Dev Dependencies (0)
None
Dependents (2)

© 2010 - cnpmjs.org x YWFE | Home | YWFE