Skip to content
This repository has been archived by the owner on Aug 1, 2022. It is now read-only.
/ jhub Public archive

JavaScript bindings for the GitHub API compatible with node.js and browser

License

Notifications You must be signed in to change notification settings

TangChr/jhub

Repository files navigation

jhub

Release npm package License Join the chat at https://gitter.im/TangChr/jhub

Build Status Downloads devDependencies

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);
    }
});