gh-api-request
is a wrapper around the Github API v3 with the following features:
- each request is added to a queue of requests that takes care of the API rate limitations
- whenever the result of a request is paged, it fetches all the pages
Install
npm install gh-api-request
Usage
const ghrequest = ; ghrequestghToken = 'foobar'; // Set to your Github API token // OptionalghrequestuserAgent = 'My User Agent https://example.com'; // defaults to Node Github API Request queue https://github.com/dontcallmedom/gh-api-request/