node package manager

github-repos

Fetch a user's repository count from Github

github-repos

Build Status Fetch a user's repository count from Github

Usage

get = require 'github-repos'
 
success = (count) -> ...
error = (err) -> ...
progress = (countSoFar) -> ...
 
(get 'someUserName').then successerrorprogress

Usage (with oauth)

(get 'someUserName''myClientId''myClientSecret''requestingUserName').then successerrorprogress

Features

  • Supports ID/Secret oauth2) for higher request volumes
  • Uses promises
  • Supports paginated responses
  • Supports progress for paginated responses

Supported environments

  • Node
  • CommonJS