Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Minimal streaming client for the github API
JavaScript
branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
test
.gitignore
.travis.yml
index.js
license.txt
package.json
readme.md

readme.md

gh-client

Minimal streaming client for the github API

Build Status

Usage

var github = require('gh-client')();
var request = github({
    method: 'GET',
    uri:    '/users/octocat'
}).pipe(process.stdout);

request.on('error', function (err) {
    // Oh noes! 
});

Callback

var github = require('gh-client')();
var request = github({
    method: 'GET',
    uri:    '/users/octocat'
}, function (err, body) {
    console.log(body);
});
Something went wrong with that request. Please try again.