吕君喜 406d880ac6 first | %!s(int64=3) %!d(string=hai) anos | |
---|---|---|
.. | ||
README.md | %!s(int64=3) %!d(string=hai) anos | |
deprecated.json | %!s(int64=3) %!d(string=hai) anos | |
index.json | %!s(int64=3) %!d(string=hai) anos | |
package.json | %!s(int64=3) %!d(string=hai) anos |
A list of SPDX license identifiers
Download JSON directly, or use npm:
npm install spdx-license-ids
Type: <Array<string>>
All license IDs except for the currently deprecated ones.
const ids = require('spdx-license-ids');
//=> ['0BSD', 'AAL', 'Abstyles', 'Adobe-2006', 'Adobe-Glyph', 'ADSL', 'AFL-1.1', 'AFL-1.2', ...]
ids.includes('BSD-3-Clause'); //=> true
ids.includes('CC-BY-1.0'); //=> true
ids.includes('GPL-3.0'); //=> false
Type: <Array<string>>
Deprecated license IDs.
const deprecatedIds = require('spdx-license-ids/deprecated');
//=> ['AGPL-1.0', 'AGPL-3.0', 'eCos-2.0', 'GFDL-1.1', 'GFDL-1.2', 'GFDL-1.3', 'GPL-1.0', ...]
deprecatedIds.includes('BSD-3-Clause'); //=> false
deprecatedIds.includes('CC-BY-1.0'); //=> false
deprecatedIds.includes('GPL-3.0'); //=> true