{"name":"spdx-license-list","version":"6.4.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"},"engines":{"node":">=8"},"scripts":{"test":"xo && ava && tsd","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"},"gitHead":"fe0b9b8bbdf4bda4540816aa3864072c659cf853","bugs":{"url":"https://github.com/sindresorhus/spdx-license-list/issues"},"homepage":"https://github.com/sindresorhus/spdx-license-list#readme","_id":"spdx-license-list@6.4.0","_nodeVersion":"14.15.1","_npmVersion":"6.14.10","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"integrity":"sha512-4BxgJ1IZxTJuX1YxMGu2cRYK46Bk9zJNTK2/R0wNZR0cm+6SVl26/uG7FQmQtxoJQX1uZ0EpTi2L7zvMLboaBA==","shasum":"9850c3699c1d35745285607d064d2a5145049d12","tarball":"http://registry-npm.ywwl.com/spdx-license-list/download/spdx-license-list-6.4.0.tgz","fileCount":460,"unpackedSize":8335961,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgDSnhCRA9TVsSAnZWagAAGVQP/0HtRRtp9yPHrFcAjXjl\nPaHv8Qts7lH4S8RdWjApQbzTJrZUAnu5tNfAXJ++u7xwBwaKVWVvKzTc+jlq\nvBQYS6d3VzkAiBop+2t8KpJBPHyKep7IAsSpWJQUeOOa4vU25YzYP1guY9OE\nB3IcICFPkl1VQ7PIytYJav5x6HYCl8E67bgH9ExcPRMZCffLNi0a9kPYhfqu\n9JzZNUv094pB84a0gJV99cxFuHoM1yj8MM/dudtxm/N/0KWHbMwKFGXWMOaK\n+EMkvBCS0x5eH8UTXoJJbBJhmM4wYrgFzprEfdBOXOH3Oi+8TidgOnzDufHf\n+zzSA09AjOfDvN2r4RULhUldpwJK6cmulgMvj+7VFeev7lcZr8fLGJ1hrAp8\nPZCIoVIszBS3T1CwpkWQVjEr1H/Jx6vbL+sSacyDPvn47+qMLzTr6RFFNHzw\nqiiMKx193gzloLl5JrksQ1Q0/dTC6nsqRCOiMlRJ802gu6yyQt4+BLGcMq5D\nvBvrhMZ7UFOudhKNMDWM8FrTcnrSnMBZqgqtQKcgp+SbcSqAW60W02du4GJe\nbS27iHPfuZIXTR++2HjhfaHRny33x5vTMw0KfhfLTxSOg6EzsUca2cWPQVoN\nWVFL+0XhAfZ0HYu8ec1wMR4klXprEmtB6cfiEHP+iHUiHCsAkE1+Jn5/C4ey\nVISF\r\n=rx+J\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCICElR3Ni4abt/X302xzd9fNG5NfI0XyVskTqPmWl4wDwAiEAySWBEM3oXjdb5Nesslqno5GyxWtCCnlexPE3yC0uqBE="}],"size":1450268,"noattachment":false,"key":"/spdx-license-list/-/spdx-license-list-6.4.0.tgz"},"directories":{},"maintainers":[{"name":"sindresorhus","email":"sindresorhus@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/spdx-license-list_6.4.0_1611475425334_0.3097108233781176"},"_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.23 (2024-02-08)*\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":1611475425597,"_cnpm_publish_time":1611475425597,"dist-tags":{"latest":"6.12.0"}}