Package Exports
- spdx-license-list
- spdx-license-list/spdx-full
- spdx-license-list/spdx-full.json
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (spdx-license-list) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
spdx-license-list 
List of SPDX licenses
The lists of licenses are two JSON files and can be used wherever.
- spdx.json contains just license metadata, license content can be found in
licenses
folder with the same name. - spdx-full.json includes the license text too.
Using SPDX License List version 1.20.
Install
$ npm install --save spdx-license-list
Usage
var spdxLicenseList = require('spdx-license-list');
console.log(spdxLicenseList.MIT);
//=> { name: 'MIT License', osiApproved: true }
// you can also get a version with the licence text included
var spdxLicenseList2 = require('spdx-license-list/spdx-full');
console.log(spdxLicenseList2.MIT);
//=> { name: 'MIT License', osiApproved: true, license: '...' }
API
spdxLicenseList
Type: object
The licenses are indexed by their identifier and contains a name
property with the full name of the license, osiApproved
boolean for whether the license is OSI Approved.
License
MIT © Sindre Sorhus