Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

spdx-licenses

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

spdx-licenses

  • 1.3.0
  • Rubygems
  • Socket score

Version published
Maintainers
1
Created
Source

spdx-licenses

A Ruby library around the SPDX license data, which provides a set of standard identifiers for open source licenses.

The data is maintained by SPDX. This library redistributes the licenses JSON file.

Installation

$ gem install spdx-licenses

or in your Gemfile:

gem 'spdx-licenses'

Versioning

This gem and its API is versioned according to semver. Minor releases may contain updates to the SPDX License List data.

spdx-licensesSPDX License List
1.0.01.2.0
1.1.02.4
1.2.03.1
1.3.03.11-54

Usage

> lic = SpdxLicenses.lookup('Apache-2.0')
> lic.id
"Apache-2.0"
> lic.name
"Apache License 2.0"
> lic.osi_approved?
true
> SpdxLicenses.lookup('Unknown')
nil

> SpdxLicenses.exist?('Apache-2.0')
true
> SpdxLicenses.exist?('Unknown')
false

License

Copyright (c) 2014-2021 Dominic Cleal. Distributed under the MIT license.

FAQs

Package last updated on 19 Feb 2021

Did you know?

Socket

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
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc