Skip to content
A list of SPDX license identifiers (3.6 2019-07-10)
JavaScript HCL
Branch: master
Clone or download

Latest commit

Fetching latest commit…
Cannot retrieve the latest commit at this time.

Files

Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.github
.editorconfig update devDependencies Jan 26, 2018
.gitattributes
.gitignore
README.md switch from Travis CI to GitHub Actions Apr 6, 2019
build.js
deprecated.json update license list to v3.4 (2018-12-20) Dec 20, 2018
index.json update license list to v3.6 (2019-07-10) (#15) Jul 11, 2019
package-lock.json 3.0.5 Jul 11, 2019
package.json 3.0.5 Jul 11, 2019
test.js extract deprecated IDs into another JSON Jan 26, 2018

README.md

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

You can’t perform that action at this time.