2.0.0 • Published 1 year ago

gh-repo-has-license v2.0.0

Weekly downloads
2
License
MIT
Repository
github
Last release
1 year ago

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

2.0.0

1 year ago

1.2.1

3 years ago

1.2.0

3 years ago

1.1.2

5 years ago

1.1.1

5 years ago

1.1.0

6 years ago

1.0.0

6 years ago