lib/index.js
function GitHubContentAPI(opts) {
  if (!(this instanceof GitHubContentAPI)) return new GitHubContentAPI(opts);

  opts = Object.create(opts || {});

  if (!opts.auth && GITHUB_USERNAME && GITHUB_PASSWORD) opts.auth = GITHUB_USERNAME + ':' + GITHUB_PASSWORD;

  this._host = opts.host || 'https://api.github.com';

  GitHub.call(this, opts);
  Remote.call(this, opts);
  this._gh_request = this.request;
  delete this.request;

  main = this;
}
function GitHubContentAPI(opts) {
  if (!(this instanceof GitHubContentAPI)) return new GitHubContentAPI(opts);

  opts = Object.create(opts || {});

  if (!opts.auth && GITHUB_USERNAME && GITHUB_PASSWORD) opts.auth = GITHUB_USERNAME + ':' + GITHUB_PASSWORD;

  this._host = opts.host || 'https://api.github.com';

  GitHub.call(this, opts);
  Remote.call(this, opts);
  this._gh_request = this.request;
  delete this.request;

  main = this;
}
function GitHubContentAPI ( opts ) { if ( ! ( this instanceof GitHubContentAPI ) ) return new GitHubContentAPI ( opts ) ; opts = Object . create ( opts || { } ) ; if ( ! opts . auth && GITHUB_USERNAME && GITHUB_PASSWORD ) opts . auth = GITHUB_USERNAME + ':' + GITHUB_PASSWORD ; this . _host = opts . host || 'https://api.github.com' ; GitHub . call ( this , opts ) ; Remote . call ( this , opts ) ; this . _gh_request = this . request ; delete this . request ; main = this ; }
Create a GitHub content API remote

@param {Object} opts
Create a GitHub content API remote