Check if a GitHub repository has a license
npm install gh-repo-has-license
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
Returns true if the GitHub repo
has a license. Otherwise it returns false.
- has-license - Check if a repository has a license
- default-branch - Get the default branch of a GitHub repository