gothub
A convenience wrapper for got
to interact with the GitHub API, very similar to gh-got.
Install
$ npm install --save gothub
Usage
With gh-got, you do this:
var ghGot = ; ;
With gothub, you can do this:
var gothub = ; var github = token:'foo' endpoint:'https://github-enterprise.example.com/api/v3' ; github;
gothub moves the token
and endpoint
options into the constructor.
Much of the work was shamelessly borrowed from Sindre Sorhus - I simply rearranged some things.