{"_id":"spdx-licenses","_rev":"8-82d668d6ea2e71d6c24bac7156d9824e","name":"spdx-licenses","description":"Has a list of all the valid SPDX licenses, and for a given id, will return the full name and if OSI approved.","dist-tags":{"latest":"1.0.0"},"versions":{"0.0.1":{"name":"spdx-licenses","version":"0.0.1","description":"Has a list of all the valid SPDX licenses, and for a given id, will return the full name and if OSI approved.","main":"index.js","scripts":{"test":"./node_modules/.bin/mocha --reporter list test.js"},"repository":{"type":"git","url":"git://github.com/stdarg/spdx-licenses.git"},"keywords":["SPDX","license","OSI","npm"],"author":{"name":"Edmond Meinfelder"},"license":"MIT","bugs":{"url":"https://github.com/stdarg/spdx-licenses/issues"},"homepage":"https://github.com/stdarg/spdx-licenses","dependencies":{"debug":"0.7.4","is2":"0.0.11"},"devDependencies":{"mocha":"1.16.2"},"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 string 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","readmeFilename":"README.md","_id":"spdx-licenses@0.0.1","dist":{"shasum":"d462ef42d8cb63c9d23fcc2503c0367069fe1cfd","tarball":"https://registry.npmjs.org/spdx-licenses/-/spdx-licenses-0.0.1.tgz","integrity":"sha512-AbN9ZcbJNUyRz4gMShfFtZlj0ufxzaol41SY6HWmemaHI0hEGUYkdaOFDc1S3cqdaG4LDeLjpkqxheD+4Ch3rA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDID9NR41IdP+ckVM2r+QyDaSAwPkKYFx1Qjsn7gJRu8AIgTr8SwgkmSQPg2r6JIZTbb3GGsBRJ+0Z1OivHlINJk54="}]},"_from":".","_npmVersion":"1.3.21","_npmUser":{"name":"stdarg","email":"edmond@stdarg.com"},"maintainers":[{"name":"stdarg","email":"edmond@stdarg.com"}],"directories":{}},"0.0.2":{"name":"spdx-licenses","version":"0.0.2","description":"Has a list of all the valid SPDX licenses, and for a given id, will return the full name and if OSI approved.","main":"index.js","scripts":{"test":"./node_modules/.bin/mocha --reporter list test.js"},"repository":{"type":"git","url":"git://github.com/stdarg/spdx-licenses.git"},"keywords":["SPDX","license","OSI","npm"],"author":{"name":"Edmond Meinfelder"},"license":"MIT","bugs":{"url":"https://github.com/stdarg/spdx-licenses/issues"},"homepage":"https://github.com/stdarg/spdx-licenses","dependencies":{"debug":"0.7.4","is2":"0.0.11"},"devDependencies":{"mocha":"1.16.2"},"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","readmeFilename":"README.md","_id":"spdx-licenses@0.0.2","dist":{"shasum":"be782ecaeb9c586c63a36f0987463a0272823f04","tarball":"https://registry.npmjs.org/spdx-licenses/-/spdx-licenses-0.0.2.tgz","integrity":"sha512-9BW08Zc/KcA3P6GycaYL74dzLUE+EI8Bfccn117raxouojIt4zvpyXPxLmOxLFAd/xV206JTDmdEqg53jgwyww==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIH9KcuBQTljnUZZxjhmP/Yj/jAMnwbPNdLGe49NxvSwCAiBoiC1tNDvkD8DuXK855eEdeTGkq58wVcCEREZuLbX6kQ=="}]},"_from":".","_npmVersion":"1.3.21","_npmUser":{"name":"stdarg","email":"edmond@stdarg.com"},"maintainers":[{"name":"stdarg","email":"edmond@stdarg.com"}],"directories":{}},"0.0.3":{"name":"spdx-licenses","version":"0.0.3","description":"Has a list of all the valid SPDX licenses, and for a given id, will return the full name and if OSI approved.","main":"index.js","scripts":{"test":"./node_modules/.bin/mocha --reporter list test.js"},"repository":{"type":"git","url":"git://github.com/stdarg/spdx-licenses.git"},"keywords":["SPDX","license","OSI","npm"],"author":{"name":"Edmond Meinfelder"},"license":"MIT","bugs":{"url":"https://github.com/stdarg/spdx-licenses/issues"},"homepage":"https://github.com/stdarg/spdx-licenses","dependencies":{"debug":"0.7.4","is2":"0.0.11"},"devDependencies":{"mocha":"1.16.2"},"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 the Software Package Data Exchange® '+\n            'list version: ', spdxLicenses.version);\n        console.log('The full name for \"LGPL-3.0+\" is: '+license.name);\n\n        if (license.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 the Software Package Data Exchange® list 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\nThe MIT License (MIT)\n\nCopyright (c) 2014 Edmond Meinfelder\n\nPermission is hereby granted, free of charge, to any person obtaining a copy of\nthis software and associated documentation files (the \"Software\"), to deal in\nthe Software without restriction, including without limitation the rights to\nuse, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of\nthe Software, and to permit persons to whom the Software is furnished to do so,\nsubject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS\nFOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR\nCOPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER\nIN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN\nCONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n","readmeFilename":"README.md","_id":"spdx-licenses@0.0.3","dist":{"shasum":"4da706f203102b1261d7d2e61a78d034c96246be","tarball":"https://registry.npmjs.org/spdx-licenses/-/spdx-licenses-0.0.3.tgz","integrity":"sha512-T9bEF+Q2ugCCyFp3c9t5ROjLFGTNxDJBobjK5muQlEM5ATKRDwjprTOwpwbrc/+WcBzHvPck/roTMfC9YHWbCQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIE6PVAEIUj+8YT63Lt33E/ZcqD/VXWCSlV8m9+A6JrNfAiAdNaGpd7M6oyMNPaZPuJDrp7Vnxlqx2gHHdCH3vlF0gw=="}]},"_from":".","_npmVersion":"1.3.21","_npmUser":{"name":"stdarg","email":"edmond@stdarg.com"},"maintainers":[{"name":"stdarg","email":"edmond@stdarg.com"}],"directories":{}},"1.0.0":{"name":"spdx-licenses","version":"1.0.0","description":"Has a list of all the valid SPDX licenses, and for a given id, will return the full name and if OSI approved.","main":"index.js","scripts":{"test":"mocha --reporter list test.js"},"repository":{"type":"git","url":"git://github.com/stdarg/spdx-licenses.git"},"keywords":["SPDX","license","OSI","npm"],"author":{"name":"Edmond Meinfelder"},"license":"MIT","bugs":{"url":"https://github.com/stdarg/spdx-licenses/issues"},"homepage":"https://github.com/stdarg/spdx-licenses","dependencies":{"debug":"4.1.1","is2":"2.0.1"},"devDependencies":{"mocha":"6.0.2"},"gitHead":"11f0d1d4c01fc5814b95d67002a56945a862cad2","_id":"spdx-licenses@1.0.0","_npmVersion":"6.4.1","_nodeVersion":"10.15.1","_npmUser":{"name":"stdarg","email":"edmond@stdarg.com"},"dist":{"integrity":"sha512-BmeFZRYH9XXf56omx0LuiG+gBXRqwmrKsOtcsGTJh8tw9U0cgRKTrOnyDpP1uvI1AVEkoRKYaAvR902ByotFOw==","shasum":"e883cc8fab52cbfea9acc5cf6cb01244b08eff79","tarball":"https://registry.npmjs.org/spdx-licenses/-/spdx-licenses-1.0.0.tgz","fileCount":8,"unpackedSize":38861,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJckTaQCRA9TVsSAnZWagAAU0QP/0aGsbrYhCRdfpxIhUNB\nlJIdoF50L4xw24pvU1/1IDkrazbvnHPZ9WGctMf0LV8zjPPr8SJp6WKBrTuN\n7fnBpkfoPoFWok6qo0jgFHTavj3WwYW0YcdNcAd31j8LsJQO0/e9UTxJsv7x\nlqDnPtORJ1kpBnWbOSWsckkrtRcYQlJ5IIYUkCf4BFTMBJFS6gkXheILHMkD\n0QeiV3wlpZ6yzDKRGhCyL3sk+mPsdbMzL8C8Zebb2IejHdMTSd7sVjHEWtou\nd8QtC3MJZLhYo1+9EI+8vOJ2j9Khig8D/Raw3jAMiql7QQSsNcMxJWMsKYeF\nj+a4Nl1yDV/GQogbbXsnmgguqfYDhR891giQcRfs4TQedRNhs0BuQMKg0GA6\ni89/IkJjxmWzhhZeb59a0tfSRI4uo6mcn8W1+Fmvc2G7UXLYp0Mtzi5WKWzw\nAgigtrWzJW3gmwT3PKJtNrKbGhsH1qdH26LjKdj0KJKVPGvnQ2ckF4xJXVUd\n0/pKTrrJNi+kihgR501sFs3i9xgMOyYU7bzF8ATzhsAPFtBWQiFC9Sb6rbjm\nfCgNRVVRmIR40uEmGxhRHDNuClSeKkHFusqYAda5a1muZwvHIa0uj7GgzB6N\ngLFJawx/Mf/j3+oT5aXYAHDsNIeMmMg9laNRMkiS4IxmFS9GzsJmV6iL/Wr1\no1aV\r\n=gW13\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIGo+SkXpDKc3AUOyMVyzqy5S0nx5XGHHRuQTHhQGWreUAiBZokAwtihMG3iGkrrt0JH14Vh6EEXGicf6ZJZLmTdZoA=="}]},"maintainers":[{"name":"stdarg","email":"edmond@stdarg.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/spdx-licenses_1.0.0_1553020559676_0.707980878304985"},"_hasShrinkwrap":false}},"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 the Software Package Data Exchange® '+\n            'list version: ', spdxLicenses.version);\n        console.log('The full name for \"LGPL-3.0+\" is: '+license.name);\n\n        if (license.OSIApproved)\n            console.log('The license is OSI approved.');\n        else\n            console.log('The license is not OSI 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 the Software Package Data Exchange® list 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\nThe MIT License (MIT)\n\nCopyright (c) 2014 Edmond Meinfelder\n\nPermission is hereby granted, free of charge, to any person obtaining a copy of\nthis software and associated documentation files (the \"Software\"), to deal in\nthe Software without restriction, including without limitation the rights to\nuse, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of\nthe Software, and to permit persons to whom the Software is furnished to do so,\nsubject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS\nFOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR\nCOPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER\nIN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN\nCONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n","maintainers":[{"name":"stdarg","email":"edmond@stdarg.com"}],"time":{"modified":"2022-06-26T22:40:45.437Z","created":"2014-01-05T22:25:45.977Z","0.0.1":"2014-01-05T22:25:45.977Z","0.0.2":"2014-01-05T22:28:10.023Z","0.0.3":"2014-01-05T22:33:02.399Z","1.0.0":"2019-03-19T18:35:59.775Z"},"users":{"developit":true},"homepage":"https://github.com/stdarg/spdx-licenses","keywords":["SPDX","license","OSI","npm"],"repository":{"type":"git","url":"git://github.com/stdarg/spdx-licenses.git"},"author":{"name":"Edmond Meinfelder"},"bugs":{"url":"https://github.com/stdarg/spdx-licenses/issues"},"license":"MIT","readmeFilename":"README.md"}