2.0.0 • Published 2 years ago

gh-repo-has-license v2.0.0

Weekly downloads
2
License
MIT
Repository
github
Last release
2 years 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

2 years ago

1.2.1

4 years ago

1.2.0

4 years ago

1.1.2

6 years ago

1.1.1

6 years ago

1.1.0

7 years ago

1.0.0

8 years ago