gh-repo-has-license
TypeScript icon, indicating that this package has built-in type declarations

2.0.0 • Public • Published

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

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 2.0.0
    1
    • latest

Version History

Package Sidebar

Install

npm i gh-repo-has-license

Weekly Downloads

1

Version

2.0.0

License

MIT

Unpacked Size

4.66 kB

Total Files

5

Last publish

Collaborators

  • knutkirkhorn