6.9.0 • Published 1 month ago

spdx-license-list v6.9.0

Weekly downloads
40,575
License
CC0-1.0
Repository
github
Last release
1 month ago

spdx-license-list

List of SPDX licenses

The lists of licenses are just JSON files and can be used anywhere.

Using SPDX License List version 3.23 (2024-02-08)

Install

npm install spdx-license-list

Usage

const spdxLicenseList = require('spdx-license-list');

console.log(spdxLicenseList.MIT);
/*
{
	name: 'MIT License',
	url: 'http://www.opensource.org/licenses/MIT',
	osiApproved: true
}
*/
const mitLicense = require('spdx-license-list/licenses/MIT');

console.log(mitLicense.licenseText);
//=> 'MIT License\r\n\r\nCopyright (c) <year> <copyright holders> …'

You can also get a version with the licence text included:

const spdxLicenseList = require('spdx-license-list/full');

console.log(spdxLicenseList.MIT);
/*
{
	name: 'MIT License',
	url: 'http://www.opensource.org/licenses/MIT',
	osiApproved: true,
	licenseText: '…'
}
*/

Or just the license IDs as a Set:

const spdxLicenseList = require('spdx-license-list/simple');

console.log(spdxLicenseList);
//=> Set {'Glide', 'Abstyles', …}

API

spdxLicenseList

Type: object

The licenses are indexed by their identifier and contains a name property with the full name of the license, url with the URL to the license, and osiApproved boolean for whether the license is OSI Approved.

@atomist/sdm@keanucode/initprj@atao60/dummy-cli-starter-kit@nodea/universul@nodea/universal@sharksv/hycli@ahmadnassri/create@xfxstudios/create-hitcel-app@cws.ltd/windup@stackql/provider-doc-util@ahmadnassri/create-library@azteam/cli@avenham/create-service@hackbou/redteam-boilerplatealireza-cli-finalalireza-cli-final2redteam-create-projectfuse-create-project@atomist/atomist-sdmjsii@alfresco/adf-cli@everything-registry/sub-chunk-2804legalizer@red-team/boilerplatelibrary-analyzerkreatkreat-appkreate-applicense-lslicensechecklicenserkerouac-npm-packageskia-clildstarslaslassinitpkginkalocal-npm-configni-clijsii-pacmakjsdoc-baselineintelligo-clineu2metabuildnodejinlsspdx@reflar/create-flarum-extension@ubersystem/jfw-cli@thasmo/generator-email@tomer/generator-js@topgroup/diginext@travi/project-scaffolder@umbrisoft/template-genesis@siddiqus/expressive-cli@sitecore/sxa-cli@sixxgate/awspass@reprex/create-project@softwareventures/maintain-project@stackql/openapi-doc-util@stackgen/core@rfapi/api@rfapi/create-api@sujaykumarh/start@sunil-icreon/create-project@supryantowp/create-bonext@sugarcrm/jsdoc-baseline@suboorkhan/create-bootstrap-app@swirlyleopard/creatable@scribblerockerz/vue-cli-plugin-component@telus/create-library@telus/digital@salihu/create-project@w2s2k/apigen-cli@yderana/xerador@yfujii01/nodecli1@windup-cli/windup@waldronmatt/bowman@xfxstudios/create-base-app@xfxstudios/create-template-appbeanno1116-kreat@akshaysingla90/my-app-cliapp-fordism@aaqilniz/cli@aaqilniz/cli-updated@abdulmoeedsaleem/boiler-plate@avernusx/app-front-create@atomist/sdm-pack-node@atao60/create-project@atxm/generator-packagebetter-npm-init@caspiandevbr/caspian-cli@constellation-mutual/create-cm-appclintonbotgen@barecool/vue-cli-plugin-gas-ab@darren-valent/cdk-ec2-key-pair@cws.ltd/cws-create@davwheat/create-flarum-extensionconstruct-hub-webapp
6.9.0

1 month ago

6.8.0

5 months ago

6.7.0

7 months ago

6.6.0

2 years ago

6.5.0

2 years ago

6.4.0

3 years ago

6.3.0

4 years ago

6.2.0

4 years ago

6.1.0

5 years ago

6.0.0

5 years ago

5.0.0

5 years ago

4.1.0

6 years ago

4.0.0

6 years ago

3.0.1

7 years ago

3.0.0

7 years ago

2.1.0

8 years ago

2.0.0

9 years ago

1.1.0

10 years ago

1.0.0

10 years ago