Git Product home page Git Product logo

spdx-license-ids's Introduction

spdx-license-ids

npm version Github Actions

A list of SPDX license identifiers

Installation

Download JSON directly, or use npm:

npm install spdx-license-ids

require('spdx-license-ids')

Type: string[]

All license IDs except for the currently deprecated ones.

const ids = require('spdx-license-ids');
//=> ['0BSD', 'AAL', 'ADSL', 'AFL-1.1', 'AFL-1.2', 'AFL-2.0', 'AFL-2.1', 'AFL-3.0', 'AGPL-1.0-only', ...]

ids.includes('BSD-3-Clause'); //=> true
ids.includes('CC-BY-1.0'); //=> true

ids.includes('GPL-3.0'); //=> false

require('spdx-license-ids/deprecated')

Type: string[]

Deprecated license IDs.

const deprecatedIds = require('spdx-license-ids/deprecated');
//=> ['AGPL-1.0', 'AGPL-3.0', 'GFDL-1.1', 'GFDL-1.2', 'GFDL-1.3', 'GPL-1.0', 'GPL-2.0', ...]

deprecatedIds.includes('BSD-3-Clause'); //=> false
deprecatedIds.includes('CC-BY-1.0'); //=> false

deprecatedIds.includes('GPL-3.0'); //=> true

License

Creative Commons Zero v1.0 Universal

spdx-license-ids's People

Contributors

dependabot[bot] avatar kemitchell avatar lkoskela avatar shinnn avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

spdx-license-ids's Issues

Add `spdx-license-ids/fsf` and `spdx-license-ids/osi`

There is some additional metadata contained within the SPDX License list: FSF Free/Libre and OSI Approved.

As a user building something around spdx-license-ids, it would be stellar if these were additional exports from the module that followed a similar model to spdx-license-ids/deprecated:

const freeSoftwareLicenses = require('spdx-license-ids/fsf')
const osiApprovedLicenses = require('spdx-license-ids/osi')

If this is something you're interested in, I'd be happy to try to contribute it @shinnn โค๏ธ

Node module compatibility

Hello ๐Ÿ”†

It would be great if spdx-license-ids becomes compatible with Node module, e.g:

import ids from 'spdx-license-ids';

For now, import assertions are experimental and not recommended in production environments.

Get NONE and NOASSERTION options added

In the project https://github.com/clearlydefined we currently only have a notion of a component missing a license. However, there are components that are not missing licenses, they in fact have no license. We want to implement a way to support that and display it to the user. These options from the licence picker (on our side) are coming directly from here and so the ask is:
Can we please get these 2 options (NONE and NOASSERTION) added ?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.