shinnn/spdx-license-ids


A list of SPDX license identifiers (3.5 2019-04-02)

https://spdx.org/licenses/

License: Unlicense

Language: JavaScript

Keywords: array, javascript, json, license, list, nodejs, oss, spdx


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

Node.js API

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

Project Statistics

Sourcerank 15
Repository Size 112 KB
Stars 21
Forks 10
Watchers 4
Open issues 0
Dependencies 188
Contributors 2
Tags 17
Created
Last updated
Last pushed

Top Contributors See all

Shinnosuke Watanabe Kyle E. Mitchell

Packages Referencing this Repo

spdx-license-ids
A list of SPDX license identifiers
Latest release 3.0.5 - Updated - 21 stars
deprecated-spdx-license-ids
A list of SPDX license identifiers
Latest release 0.0.0 - Published - 21 stars
spdx-license-ids
A list of SPDX license identifiers
Latest release v3.0.5 - Published - 21 stars
org.webjars.npm:spdx-license-ids
WebJar for spdx-license-ids
Latest release 3.0.1 - Updated - 21 stars
spdx-license-identifiers
A list of SPDX license identifiers
Latest release 1.1.0 - Updated - 21 stars
spdx-license-identifiers
A list of SPDX license identifiers
Latest release v3.0.5 - Published - 21 stars

Recent Tags See all

v3.0.5 July 11, 2019
v3.0.4 April 06, 2019
v3.0.3 December 20, 2018
v3.0.2 October 31, 2018
v3.0.1 September 07, 2018
v3.0.0 January 26, 2018
v3.0.0-1 January 26, 2018
v3.0.0-0 January 26, 2018
v2.0.1 February 06, 2017
v2.0.0 December 26, 2016
v1.2.2 July 26, 2016
v1.2.1 April 07, 2016
v1.2.0 January 12, 2016
v1.0.2 July 12, 2015
v1.0.1 May 24, 2015

Something wrong with this page? Make a suggestion

Last synced: 2019-07-11 08:41:22 UTC

Login to resync this repository