{"name":"spdx-license-list","version":"6.3.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":"a0160cf06554f5e21e0b8a28b3a3ff780a71831f","bugs":{"url":"https://github.com/sindresorhus/spdx-license-list/issues"},"homepage":"https://github.com/sindresorhus/spdx-license-list#readme","_id":"spdx-license-list@6.3.0","_nodeVersion":"10.22.0","_npmVersion":"6.14.7","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"integrity":"sha512-Qz8ru5VVK5T4cFOBrshIzggzrQ15fVBcpjpZLCVz2j9KNnpslGbw8w1r06v2vi6YP6bnUSY5CXsFCfUypLZ2GA==","shasum":"29507bdd88e5f1dcf62634d3c7f9051245e7ef07","tarball":"http://registry-npm.ywwl.com/spdx-license-list/download/spdx-license-list-6.3.0.tgz","fileCount":454,"unpackedSize":8303526,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfYqaRCRA9TVsSAnZWagAA/LUP/jnLFSm8zZTu9pOHBfwW\n5B3OXKUAY5eSkYoQEfUN3jPfGdFt9U1q/Xr9y9qnpeh09moPLIvKpiNZbLvH\nEV3mo6oKobne8QN5iiRM+5Gmnb/SZs1/6klDrOtnT+Jsqj/z7tKirp+hgzwq\nnLMucpzDtMNwMekld/YrnZ/kTZQ1KHukfgHb1hqpdkionnw9FnMs/Jse0rVg\n9uQ12pBl9rLvps1CQg2/5YhAM0pEay/pirYvLeexfZ21lpiYiMoKTY3egc+Y\nqNubb3EyPC/WUrsQYtOKWIDnfUo8AZSYtyGxk0EtMkTS5zsb0YIfV1kAwcBK\nS+gUEOWqbMtNOc2oZ5hLJLu+Ed9bbckn55bHMrQ+6qRT3PGjUXqi4oNyLe2n\nHeizfgyBAlbHSYhGkHW2FyJgqDfCiOfVPYG71OdLDkUhN0PYXJd5ouPkXNLZ\nYQbSMfJN3HB29SoD+Ef7TQtNGV65wX+0k3eHkRQL5U+2H+ivWmPL/quui204\nehSxFy6U/WDgdmF3MQKl38+PIiO7dPQVdjsw7koRGi8zNbn2iFOT40ItP2/5\n3wbctTLc3eetMBtAwAPxI2jkB8A/NH2ReOXvpmoHBfbkGNqFLJ+ruMBDphYw\nLLGMyfNdk5uJbKccyeem8L4Zl/np/j40WGOlAB7I00eWy+ijwvbP7ofxVOUr\npC02\r\n=x0MZ\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDm3jFKXEhlwItE/x3ZyYgZyDDI0D2u2P4T2P70al/wdwIhAI+5qUoazbhhxTEY15P3X1eqJqXBl0gA3u2Guo+4V6pm"}],"size":1418389,"noattachment":false,"key":"/spdx-license-list/-/spdx-license-list-6.3.0.tgz"},"maintainers":[{"name":"sindresorhus","email":"sindresorhus@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/spdx-license-list_6.3.0_1600300689219_0.6637439279639263"},"_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":1600300689514,"_cnpm_publish_time":1600300689514,"dist-tags":{"latest":"6.12.0"}}