{"name":"spdx-license-list","version":"1.1.0","description":"List of SPDX licenses","license":"MIT","repository":{"type":"git","url":"git://github.com/sindresorhus/spdx-license-list"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"http://sindresorhus.com"},"engines":{"node":">=0.10.0"},"scripts":{"test":"node test.js","generate":"node generate.js"},"files":["index.js","spdx.json","spdx-full.json","licenses"],"keywords":["spdx","license","licenses","mit","bsd","list","open source","software"],"devDependencies":{"ava":"0.0.4","convert-json":"^0.4.0","download":"^1.0.1","request":"^2.40.0","tar":"^1.0.0"},"gitHead":"e576d5c36cdf50a0a003915a93c8dcbef4b521d8","bugs":{"url":"https://github.com/sindresorhus/spdx-license-list/issues"},"homepage":"https://github.com/sindresorhus/spdx-license-list","_id":"spdx-license-list@1.1.0","_shasum":"9acffd7c1c2fb7ad2b4825f1979a882edfb28da7","_from":".","_npmVersion":"1.4.14","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"maintainers":[{"name":"sindresorhus","email":"sindresorhus@gmail.com"}],"dist":{"shasum":"9acffd7c1c2fb7ad2b4825f1979a882edfb28da7","tarball":"http://registry-npm.ywwl.com/spdx-license-list/download/spdx-license-list-1.1.0.tgz","integrity":"sha512-8VKW0sh1XbrOJjveq9gQFibHb5OmVPAjendfJ5RgPc5MYFdzpmg4WVPXEpmdqNMYP52Z1C8VbTo2PNAHB9NujA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIFkXZfnJUc4RuoDy25K5AEUwFtycXiZGfNAOTiVn4+ZNAiBQtUVNB82DSGk9OOQAOGnGkZprmNskdKo93DOFFEoerQ=="}],"size":1024959,"noattachment":false,"key":"/spdx-license-list/-/spdx-license-list-1.1.0.tgz"},"directories":{},"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":1408316699914,"_cnpm_publish_time":1408316699914,"dist-tags":{"latest":"6.12.0"}}