Module that provides means to check/search in GitHub.
Members
-
<static> settings
-
Supported operation settings/options. Conform to format of nomnom options.
Methods
-
<static> detect(name, callback [, settings])
-
Check whether repository with the specified name is existent. Data about found repositories will be passed into callback as array. If no repository is found, empty array will be passed into callback.
Parameters:
Name Type Argument Description nameString Name of the repository to check. callbackfunction Function that should be called to process operation's result. settingsObject <optional>
Operation settings. The following settings are supported (name - type - description): caseSensitive-Boolean- Whether case-sensitive search should be usedpartialMatch-Integer- Allow partial matching: 0 - disallow (by default), 1 - allow at the beginning of matching strings, 2 - allow substring matchinglang, language-String- Search repositories that are written in the specified languageuser-String- GitHub username that should be used for authenticationpassword-String- GitHub account passwordtoken-String- OAuth2 token that should be used for authentication instead of username and passwordlimit-Integer- Limit of quantity of results; default and maximum value is 100pageSize-Integer- Quantity of results per page; default and maximum value is 100