JavaScript bindings for the GitHub API.
- Get information from the GitHub API (Read-only).
- Runs in Node.js apps and the browser.
- No authentication required.
- "Minified" version available.
npm install jhub
var jhub = require('jhub');
jhub.init('TangChr');
// List all repositories for user TangChr
jhub.repos(function(repos) {
for(var r in repos) {
var repo = repos[r];
console.log(repo.name + ': ' + repo.htmlUrl);
}
});
// List all releases for repository TangChr/jhub. jhub must be initialized before this.
var repo = jhub.repo('jhub');
repo.releases(function(releases) {
for(var r in releases) {
var release = releases[r];
console.log(release.tagName + ': ' + release.name);
}
});