Github

Github

Github Library

Constructor

new Github(options)

Source:
See:
To Do:
  • Implement the rest of methods
Example
const github = new Github({
 username: 'fazt',
 token: 'xyz123'
});

const repositories = github.getRepositories();
Parameters:
Name Type Description
options Object
Properties
Name Type Description
user string

your username

token string

secret token

Methods

getRepositories(options) → {Array.<Object>}

Source:

List of all Public User's Repositories

Parameters:
Name Type Description
options Object
Properties
Name Type Attributes Default Description
limit Number <optional>
6

The limit of respositories to return

Returns:

An array of public repositories

Type
Array.<Object>