{"bugs":{"url":"https://github.com/stdarg/spdx-licenses/issues"},"dist":{"shasum":"be782ecaeb9c586c63a36f0987463a0272823f04","tarball":"https://registry.npmjs.org/spdx-licenses/-/spdx-licenses-0.0.2.tgz","integrity":"sha512-9BW08Zc/KcA3P6GycaYL74dzLUE+EI8Bfccn117raxouojIt4zvpyXPxLmOxLFAd/xV206JTDmdEqg53jgwyww==","signatures":[{"sig":"MEQCIH9KcuBQTljnUZZxjhmP/Yj/jAMnwbPNdLGe49NxvSwCAiBoiC1tNDvkD8DuXK855eEdeTGkq58wVcCEREZuLbX6kQ==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"index.js","name":"spdx-licenses","_from":".","author":{"name":"Edmond Meinfelder"},"readme":"spdx-licenses\n=============\n\nA simple module to determine if a license id is a valid SPDX license and if it\nis, get the full name and a flag indicating if the license is OSI approved.\n\nEach license entry has the following information:\n\n* name - The full name of the license, e.g. &quot;Academic Free License v3.0&quot;\n* id - The abbreviated id you used to acquire the license, e.g. &quot;AFL-3.0&quot;\n* OSIApproved - A boolean flag that is true when the license is OSI approved.\n\nAn exmaple license follows:\n\n```JSON\n    \"MIT\": {\n        \"name\": \"MIT License\",\n        \"id\": \"MIT\",\n        \"OSIApproved\": true\n    }\n```\n\n## Example usage\n\n```javascript\n    var spdxLicenses = require('spdx-license');\n    var target = 'LGPL-3.0+';\n    var license = spdxLicenses.spdx(target);\n\n    if (license) {\n        console.log('We are working with Software Package Data Exchange® version ',\n            spdxLicenses.version);\n        console.log('The full name for \"LGPL-3.0+\" is: '+\n            spdxLicenses.spdx('LGPL-3.0+').name);\n\n        if (spdxLicenses.spdx('LGPL-3.0+').OSIApproved)\n            console.log('The license is OSDI approved.');\n        else\n            console.log('The license is not OSDI approved.');\n    } else {\n        console.error('There is no such license as '+target);\n    }\n```\n\nThe above results in the following output:\n\n    We are working with Software Package Data Exchange® version  1.19\n    The full name for \"LGPL-3.0+\" is: GNU Lesser General Public License v3.0 or later\n    The license is OSDI approved.\n\n### version\nThe version of the SPDX License List from https://spdx.org/licenses/ - This is \na literal non-semver-compliant string, e.g. \"1.19\".\n\n### spdx(id)\nGet info on a license for a given license id. And, if not a valid SPDX license\nid, return false.\n\n#### Param:\n* **String** *id* The SPDX license id, e.g. &quot;MIT&quot;, &quot;Apache-2.0&quot;, etc.\n\n#### Returns:\n* **Object|Boolean** Returns an object with the info on the licese or false if there is no such license id.\n\n","license":"MIT","scripts":{"test":"./node_modules/.bin/mocha --reporter list test.js"},"_npmUser":{"name":"stdarg","email":"edmond@stdarg.com"},"homepage":"https://github.com/stdarg/spdx-licenses","keywords":["SPDX","license","OSI","npm"],"repository":{"url":"git://github.com/stdarg/spdx-licenses.git","type":"git"},"_npmVersion":"1.3.21","description":"Has a list of all the valid SPDX licenses, and for a given id, will return the full name and if OSI approved.","directories":{},"maintainers":[{"name":"stdarg","email":"edmond@stdarg.com"}],"dependencies":{"is2":"0.0.11","debug":"0.7.4"},"readmeFilename":"README.md","devDependencies":{"mocha":"1.16.2"},"_id":"spdx-licenses@0.0.2","version":"0.0.2"}