gh-repo-has-license
v2.0.0
Published
Check if a GitHub repository has a license
Downloads
6
Maintainers
Readme
gh-repo-has-license
Check if a GitHub repository has a license
Installation
npm install gh-repo-has-license
Usage
import ghRepoHasLicense from 'gh-repo-has-license';
console.log(await ghRepoHasLicense('knutkirkhorn/btc-value-cli'));
// => true
console.log(await ghRepoHasLicense('https://github.com/knutkirkhorn/btc-value-cli'));
// => true
API
ghRepoHasLicense(repo)
Returns true if the GitHub repo
has a license. Otherwise it returns false.
Related
- has-license - Check if a repository has a license
- default-branch - Get the default branch of a GitHub repository