{"name":"spdx-license-list","version":"6.2.0","description":"List of SPDX licenses","license":"CC0-1.0","repository":{"type":"git","url":"git+https://github.com/sindresorhus/spdx-license-list.git"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"sindresorhus.com"},"engines":{"node":">=8"},"scripts":{"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","xo":"^0.24.0"},"gitHead":"07bee66c611a95b46378b5d22a6801f5fea1f74a","bugs":{"url":"https://github.com/sindresorhus/spdx-license-list/issues"},"homepage":"https://github.com/sindresorhus/spdx-license-list#readme","_id":"spdx-license-list@6.2.0","_nodeVersion":"10.19.0","_npmVersion":"6.13.4","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"integrity":"sha512-sHM1eQz+yYrKRIO5j/tzu3yWhbouQc2RYmCn5nNC296nVztW0VSlpJvmgsWPKAMEIqjfghXy3vvIwCbEOJPSHg==","shasum":"f81f6e73cb01535012d8014db375567110c652be","tarball":"http://registry-npm.ywwl.com/spdx-license-list/download/spdx-license-list-6.2.0.tgz","fileCount":418,"unpackedSize":7427596,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJemGZZCRA9TVsSAnZWagAAJ3kP/jkQAvHVupsorRXljr6n\n6Q+edSsuVcQ/7tMymgIA3Sff60lU6WbM/ZL7OndBlLVydNY9ADpWc1XQ0JDt\nxeF0IpcLaWKWPilco1Dbl1LOvtSIlJquoAELjwkp9h+mEXi5dMRodDI2rXLH\nb8q/6nh5TX7toSh44EgozFtD4sm3NiHCmbenMs1rNxcaJa9i1VhlbIhFI1r5\nIAmbByzmuN5JHmQGR69XK8MGz4PUoVxqUZci8mJAabSrgX5CZBoGFfxRmRTk\nqnBcmYFy4PjOa96jEuU6tNWYASTyXK52JcrUfFUsTUciFrwk/gtNmQ8+c/43\ntC9MR0b9x5dT4w7hgYIcbek9qmwCqm6+M83S3+QiAQGvrPN5WvYjj5O2idSp\n5GfN33V4oZx/KHZWp2Rb3VMX7MWdweH+6AVw6lcZpZ6S6hkG3VTIaeAPcqsj\nifcsC4J7qAe5JG+znB7KTDq4ZWNM4sOqkyTkQxbNdXEEe/P2yn7X3G2Sdvfa\n5hEtdQLThHmBZKc11kt1VLblxd8ls0PYw7rWsHD4I3c330UP09NyHsjqwrSu\n1B7tt6W0csmQSg8y6FPYENXXr1tkUfH+i7TFrGfakzbd1WIpUbji2KWs0e7J\nshQBZR3/CCM5Uo7Ab+AYkWtsd79swsAyDg6ifR7abd/f3dLV7os6/FLpydQf\nfJ0Q\r\n=ytpB\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCICJt7fMsSH6ObUOKKJ1WKDzwb4NOyqs6IfPkp2yugPOAAiEAtse9JVluNjR1DF8ihtFUsVvqR0ZxTjahEtqzhUv4Ec8="}],"size":1325333,"noattachment":false,"key":"/spdx-license-list/-/spdx-license-list-6.2.0.tgz"},"maintainers":[{"name":"sindresorhus","email":"sindresorhus@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/spdx-license-list_6.2.0_1587045976837_0.6084493080365183"},"_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":1587045977057,"_cnpm_publish_time":1587045977057,"dist-tags":{"latest":"6.12.0"}}