octokit.licenses.get({license,});
name | required | description |
---|---|---|
license | yes |
See also: GitHub Developer Guide documentation.
octokit.licenses.getAllCommonlyUsed();
name | required | description |
---|---|---|
featured | no | |
per_page | no | Results per page (max 100) |
See also: GitHub Developer Guide documentation.
This method returns the contents of the repository's license file, if one is detected.
Similar to Get repository content, this method also supports custom media types for retrieving the raw license content or rendered license HTML.
octokit.licenses.getForRepo({owner,repo,});
name | required | description |
---|---|---|
owner | yes | |
repo | yes |
See also: GitHub Developer Guide documentation.