{"name":"spdx-license-list","version":"6.5.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"},"xo":{"rules":{"import/extensions":"off"}},"types":"./index.d.ts","gitHead":"edf3a19d614dbabe9a7507546a65ec2d5e84e04d","bugs":{"url":"https://github.com/sindresorhus/spdx-license-list/issues"},"homepage":"https://github.com/sindresorhus/spdx-license-list#readme","_id":"spdx-license-list@6.5.0","_nodeVersion":"17.8.0","_npmVersion":"8.3.2","dist":{"integrity":"sha512-28O9GgFrMg2Wp8tVML0Zk+fnXaECy7UbB6pxo+93whHay/nqPyEdM07Cx6B4+j2pniUZTYr57OaIOyNTxsTwtw==","shasum":"1624b9cd6c517ff8d697610e6c22d7f5b7c63d28","tarball":"http://registry-npm.ywwl.com/spdx-license-list/download/spdx-license-list-6.5.0.tgz","fileCount":496,"unpackedSize":8995991,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIC+PBar+DwUFf+illtm6F85RuaO0v2Qud8axEjDvcPkqAiEAiKTEuvH9FZ4Or03fYfCVdQdJi31b8wQxo02ndsHoHgA="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiSrT3ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmov4xAAnuGhU/W7ztOQ2nYXBSjpFdegzTCMqVI8BUAsWgmxE+F1Mpp3\r\nCexke7Qq+ugU04WNpDUXgsgD19tMbHhVmPQtRvxDxVr6jr20tWCNceokZbX9\r\nA+FDdBZH2Hrt65lcnRRpKXk7CbaJZ+/XATEJQ0f2Fvdsj/VK+uMoCW/A0vQV\r\n4HSCHIIHeEPunxLVI2Eak1WFdmPboGr2L11RaqzYF3BNRsj8UKGAtCqiGO6I\r\n/b9zWUZJj0H/8BZZXLRY46QlkRZgqzMiITAUGVNSPzx6rDLJpXVc+MTcuJ5R\r\nhhFT3bqiCy9X2vNIuWyVfwwdQxKJpGV5teOwz1lKo+EkXhJlFnGA0QUx4h3s\r\n+BBpypQ5KuNCpTR5EPp6pp80pNLmYUWqVH4RI2cRoTh9JcPIuDQox2exBZGB\r\nY2r8PzSKprXjWtAoVjdf6d6gOqzQMLWH34c/Kmzepzq1HMudtxhm7wjO5mCl\r\nwuZXD3PJ3t6UEh4NaMBbcDobyYkRoeCYG5eLod7ZIduazdLtXeraKmiaP0uO\r\nywumHF6kKtCApRFobvGfwWNkBacBsRtQh+fBMiYDjq48UgljUke8fxSOHtw/\r\nxERDZ1m1sFk0eGZi5/UrrcnEhuaeaDpRKetyUG6XlWYBeEin6JPII2rKt6YP\r\nKgWo1LHOO8Ceci7LpEWVDIexCnEjw/39yL8=\r\n=VFxL\r\n-----END PGP SIGNATURE-----\r\n","size":2079182,"noattachment":false,"key":"/spdx-license-list/-/spdx-license-list-6.5.0.tgz"},"_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"directories":{},"maintainers":[{"name":"sindresorhus","email":"sindresorhus@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/spdx-license-list_6.5.0_1649063159140_0.9368867814314084"},"_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":1649063159396,"_cnpm_publish_time":1649063159396,"dist-tags":{"latest":"6.12.0"}}