{"name":"spdx-license-list","version":"6.12.0","description":"List of SPDX licenses","license":"CC0-1.0","repository":{"type":"git","url":"git+https://github.com/sindresorhus/spdx-license-list.git"},"funding":"https://github.com/sponsors/sindresorhus","author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"https://sindresorhus.com"},"sideEffects":false,"engines":{"node":">=8"},"scripts":{"//test":"xo && ava && tsd","test":"xo && ava","make":"node make.js"},"keywords":["spdx","license","licenses","mit","bsd","list","open source","software","id","ids","identifiers","set"],"devDependencies":{"ava":"^1.4.1","got":"^9.6.0","hard-rejection":"^2.0.0","ora":"^3.2.0","p-map":"^2.0.0","tsd":"^0.13.1","xo":"^0.24.0"},"xo":{"rules":{"import/extensions":"off"}},"gitHead":"169ac90c68a8aa2a4574c53065e6a0c9688338ae","types":"./index.d.ts","_id":"spdx-license-list@6.12.0","bugs":{"url":"https://github.com/sindresorhus/spdx-license-list/issues"},"homepage":"https://github.com/sindresorhus/spdx-license-list#readme","_nodeVersion":"22.23.1","_npmVersion":"12.0.1","dist":{"integrity":"sha512-+nUYqm3aZMSHbjsthK+i/HHI2okTElCvqwUd4k8QcSk+FTGgjq+fsdFj2wZOaX6XmR2JdWhf/NeflNnvKOjcnQ==","shasum":"20b9ae77c3410ad08720bcd5cf562e9d4eeebadb","tarball":"http://registry-npm.ywwl.com/spdx-license-list/download/spdx-license-list-6.12.0.tgz","fileCount":740,"unpackedSize":10470117,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEYCIQDwXk7xg/KY/F2/Q7tmGimHBbfcge0bnVmugPRuyrZF7wIhAP0aoM+kt/t0cgzrjvdAveq45eDPP7KrqKK/gtm1Wv61"}],"size":2527041,"noattachment":false,"key":"/spdx-license-list/-/spdx-license-list-6.12.0.tgz"},"_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"directories":{},"maintainers":[{"name":"sindresorhus","email":"sindresorhus@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/spdx-license-list_6.12.0_1784898971083_0.19297454302004335"},"_hasShrinkwrap":false,"readme":"# spdx-license-list\n\n> List of [SPDX licenses](https://spdx.org/licenses/)\n\nThe lists of licenses are just JSON files and can be used anywhere.\n\n- [spdx.json](spdx.json) contains just license metadata\n- [spdx-full.json](spdx-full.json) includes the license text too\n- [spdx-simple.json](spdx-simple.json) only contains the license IDs\n\n*Using SPDX License List version 3.28.0 (2026-02-20)*\n\n## Install\n\n```sh\nnpm install spdx-license-list\n```\n\n## Usage\n\n```js\nconst spdxLicenseList = require('spdx-license-list');\n\nconsole.log(spdxLicenseList.MIT);\n/*\n{\n\tname: 'MIT License',\n\turl: 'http://www.opensource.org/licenses/MIT',\n\tosiApproved: true\n}\n*/\n```\n\n```js\nconst mitLicense = require('spdx-license-list/licenses/MIT');\n\nconsole.log(mitLicense.licenseText);\n//=> 'MIT License\\r\\n\\r\\nCopyright (c) <year> <copyright holders> …'\n```\n\nYou can also get a version with the licence text included:\n\n```js\nconst spdxLicenseList = require('spdx-license-list/full');\n\nconsole.log(spdxLicenseList.MIT);\n/*\n{\n\tname: 'MIT License',\n\turl: 'http://www.opensource.org/licenses/MIT',\n\tosiApproved: true,\n\tlicenseText: '…'\n}\n*/\n```\n\nOr just the license IDs as a `Set`:\n\n```js\nconst spdxLicenseList = require('spdx-license-list/simple');\n\nconsole.log(spdxLicenseList);\n//=> Set {'Glide', 'Abstyles', …}\n```\n\n## API\n\n### spdxLicenseList\n\nType: `object`\n\nThe 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](https://opensource.org/licenses).\n","publish_time":1784898971391,"_cnpm_publish_time":1784898971391,"dist-tags":{"latest":"6.12.0"}}