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 unpkg.
npm install work-github
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