DOCUMENTATION.md
September 8, 2017 ยท View on GitHub
Documentation
You can see below the API reference of this module.
GitHubStats(options)
Creates a new GitHubStats instance.
Params
- Object
options: An object containing the following fields: repo(String): The GitHub repository. It can be the- ` (String): The GitHub repository.
theme(null|String|Object): The theme to use ("LIGHT","DARK"). Ifnull, no ansi styles will be used. If object, then it should met thegit-stats-colorsspecifications.
Return
- GitHubStats The
GitHubStatsinstance.
fromUser(callback)
Fetches user stats.
Params
- Function
callback: The callback function.
Return
- GitHubStats The
GitHubStatsinstance.
fromRepo(callback)
Fetches repository stats.
Params
- Function
callback: The callback function.
Return
- GitHubStats The
GitHubStatsinstance.
calendar(callback)
Fetches user calendar statistics in JSON format.
Params
- Function
callback: The callback function.
Return
- GitHubStats The
GitHubStatsinstance.
toString(callback)
Stringifies the statistics.
Params
- Function
callback: The callback function.