A higher-level wrapper around the Github API.
Github.js provides a minimal higher-level wrapper around Github's API. It was concieved in the context of Prose, a content editor for GitHub.
Github.js is available from
npm or npmcdn.
npm install github-api
<!-- just github-api source (5.3kb) --><!-- standalone (20.3kb) -->
Github.js is tested on Node:
The team behind Github.js has created a whole organization, called GitHub Tools, dedicated to GitHub and its API. In the near future this repository could be moved under the GitHub Tools organization as well. In the meantime, we recommend you to take a look at other projects of the organization.
/*Data can be retrieved from the API either using callbacks (as in versions < 1.0)or using a new promise-based API. For now the promise-based API just returns theraw HTTP request promise; this might change in the next version.*/;// unauthenticated clientconst gh = ;let gist = gh; // not a gist yetgist;
;// basic authconst gh =username: 'FOO'password: 'NotFoo';const me = gh;me;const clayreimann = gh;clayreimann;
var GitHub = ;// token authvar gh =token: 'MY_OAUTH_TOKEN';var yahoo = gh;yahoo