Socket
Socket
Sign inDemoInstall

gh-repo-has-license

Package Overview
Dependencies
70
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    gh-repo-has-license

Check if a GitHub repository has a license


Version published
Weekly downloads
1
Maintainers
1
Created
Weekly downloads
 

Readme

Source

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.

  • has-license - Check if a repository has a license
  • default-branch - Get the default branch of a GitHub repository

Keywords

FAQs

Last updated on 23 Feb 2023

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc