{"_id":"spdx-expression-validate","_rev":"7-ef68c0d774419c7b382763e8265961fa","name":"spdx-expression-validate","description":"validate SPDX license expressions","dist-tags":{"latest":"2.0.0"},"versions":{"1.0.0":{"name":"spdx-expression-validate","description":"validate SPDX license expressions","version":"1.0.0","author":{"name":"Kyle E. Mitchell","email":"kyle@kemitchell.com","url":"http://kemitchell.com"},"dependencies":{"spdx-expression-parse":"^1.0.0"},"devDependencies":{"defence-cli":"^1.0.1"},"homepage":"https://github.com/kemitchell/spdx.js","keywords":["SPDX","law","legal","license","metadata","package","package.json","standards"],"license":"(MIT AND CC-BY-3.0)","repository":{"type":"git","url":"git+https://github.com/kemitchell/spdx-expression-validate.js.git"},"scripts":{"test":"defence -i javascript README.md | sed 's!spdx-expression-validate!./!' | node"},"gitHead":"4bcf4f98e3246f883afa4961c35a79688bad70f5","bugs":{"url":"https://github.com/kemitchell/spdx-expression-validate.js/issues"},"_id":"spdx-expression-validate@1.0.0","_shasum":"857e1a9d25c3544c747625c832c2bb275166e353","_from":".","_npmVersion":"2.13.3","_nodeVersion":"0.12.7","_npmUser":{"name":"kemitchell","email":"kyle@kemitchell.com"},"dist":{"shasum":"857e1a9d25c3544c747625c832c2bb275166e353","tarball":"https://registry.npmjs.org/spdx-expression-validate/-/spdx-expression-validate-1.0.0.tgz","integrity":"sha512-PbXFxlMrYKzPG0cRUIir3NlKd/pR/ouvBpgM0IbN50XTFvmb1+ovAxdrR1zUAHopuxUa2u8YTijfkKv2KIsA8Q==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIGn2jTciT1yLxW25DaEIrbPc6hCcVUsERUyVRCcyJfWeAiEAvZqf5cTM6US/kjhQM49HU2vbexuHnagwrnLMCr4qG/8="}]},"maintainers":[{"name":"kemitchell","email":"kyle@kemitchell.com"}],"directories":{}},"1.0.1":{"name":"spdx-expression-validate","description":"validate SPDX license expressions","version":"1.0.1","author":{"name":"Kyle E. Mitchell","email":"kyle@kemitchell.com","url":"http://kemitchell.com"},"dependencies":{"spdx-expression-parse":"^1.0.0"},"devDependencies":{"defence-cli":"^1.0.1","replace-require-self":"^1.0.0"},"homepage":"https://github.com/kemitchell/spdx.js","keywords":["SPDX","law","legal","license","metadata","package","package.json","standards"],"license":"(MIT AND CC-BY-3.0)","repository":{"type":"git","url":"git+https://github.com/kemitchell/spdx-expression-validate.js.git"},"scripts":{"test":"defence -i javascript README.md | replace-require-self | node"},"gitHead":"6b733d8e702bded67974a7500f9e623bbe708a7d","bugs":{"url":"https://github.com/kemitchell/spdx-expression-validate.js/issues"},"_id":"spdx-expression-validate@1.0.1","_shasum":"a3aa1dfafde0d09f1e47983dbc739181f58ae31e","_from":".","_npmVersion":"2.13.3","_nodeVersion":"0.12.7","_npmUser":{"name":"kemitchell","email":"kyle@kemitchell.com"},"dist":{"shasum":"a3aa1dfafde0d09f1e47983dbc739181f58ae31e","tarball":"https://registry.npmjs.org/spdx-expression-validate/-/spdx-expression-validate-1.0.1.tgz","integrity":"sha512-drm+YIaaChYYuFcGKCScvcO61Q1P0WBj/5/Hqi9XrdLUZZD5gGXcQaOjIzeKuZp6f3ChT1fjlm6mu/roX7JugA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIHRqbMbVqj7F/zUc6uZGH8Nj5EMT7HcP0lNIGhDLmHBzAiBxz95pkqWJHkxAQlWeURiW6470tU0Lyv+h3RfFbb7qUQ=="}]},"maintainers":[{"name":"kemitchell","email":"kyle@kemitchell.com"}],"directories":{}},"1.0.2":{"name":"spdx-expression-validate","description":"validate SPDX license expressions","version":"1.0.2","author":{"name":"Kyle E. Mitchell","email":"kyle@kemitchell.com","url":"http://kemitchell.com"},"files":["index.js"],"dependencies":{"spdx-expression-parse":"^1.0.0"},"devDependencies":{"defence-cli":"^1.0.1","replace-require-self":"^1.0.0","standard":"^8.3.0"},"homepage":"https://github.com/kemitchell/spdx.js","keywords":["SPDX","law","legal","license","metadata","package","package.json","standards"],"license":"(MIT AND CC-BY-3.0)","repository":{"type":"git","url":"git+https://github.com/kemitchell/spdx-expression-validate.js.git"},"scripts":{"test":"defence -i javascript README.md | replace-require-self | node","lint":"standard"},"gitHead":"91065f05ececc7d1f33f5f70dbe43d404d9663eb","bugs":{"url":"https://github.com/kemitchell/spdx-expression-validate.js/issues"},"_id":"spdx-expression-validate@1.0.2","_shasum":"5a4e4d7616ed1c9b88150366b4217f767c27e9e3","_from":".","_npmVersion":"3.10.8","_nodeVersion":"4.6.0","_npmUser":{"name":"kemitchell","email":"kyle@kemitchell.com"},"dist":{"shasum":"5a4e4d7616ed1c9b88150366b4217f767c27e9e3","tarball":"https://registry.npmjs.org/spdx-expression-validate/-/spdx-expression-validate-1.0.2.tgz","integrity":"sha512-yH48ewH+T4FQfejEbX5bLH/GMxwDE15cJAYJNw28tfyyiSJ7+cjSmUVkFluxt6cvC/GV+1014COK9oC6CNk0SQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCICr9VNJeZgnbFbyP/xWK0/Mb6U1QJpiG4XlUfGDX4fnoAiB37+aF3F5+Fw7dpH7Istlja865s3t768PSo8PMpKyU/Q=="}]},"maintainers":[{"name":"kemitchell","email":"kyle@kemitchell.com"}],"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/spdx-expression-validate-1.0.2.tgz_1475698272906_0.1406639611814171"},"directories":{}},"2.0.0":{"name":"spdx-expression-validate","description":"validate SPDX license expressions","version":"2.0.0","author":{"name":"Kyle E. Mitchell","email":"kyle@kemitchell.com","url":"http://kemitchell.com"},"dependencies":{"spdx-expression-parse":"^3.0.0"},"devDependencies":{"defence-cli":"^2.0.1","replace-require-self":"^1.0.0","standard":"^12.0.1"},"homepage":"https://github.com/kemitchell/spdx.js","keywords":["SPDX","law","legal","license","metadata","package","package.json","standards"],"license":"(MIT AND CC-BY-3.0)","repository":{"type":"git","url":"git+https://github.com/kemitchell/spdx-expression-validate.js.git"},"scripts":{"test":"defence -i javascript README.md | replace-require-self | node","lint":"standard"},"gitHead":"a7c4716bba138dcfdde306be2ad2c99e95877784","bugs":{"url":"https://github.com/kemitchell/spdx-expression-validate.js/issues"},"_id":"spdx-expression-validate@2.0.0","_nodeVersion":"8.11.1","_npmVersion":"6.7.0","dist":{"integrity":"sha512-b3wydZLM+Tc6CFvaRDBOF9d76oGIHNCLYFeHbftFXUWjnfZWganmDmvtM5sm1cRwJc/VDBMLyGGrsLFd1vOxbg==","shasum":"25c9408e1c63fad94fff5517bb7101ffcd23350b","tarball":"https://registry.npmjs.org/spdx-expression-validate/-/spdx-expression-validate-2.0.0.tgz","fileCount":4,"unpackedSize":3601,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcZzoxCRA9TVsSAnZWagAAYAEQAJ7DK788oetfjk3uxoo0\nFfyu8ZaPMfagfW5LaYWzl5G/V0/aebDLWBm0K0/6evKBInPOmOZEwM2dYBvx\nEiQMiv5clUcCcMcW7DUAhkR4p5YulrM+BozJlrKO9o4Fg4K94hQGPclVDsQl\nB4S//AXf4TTRgkzjq2Vd6L/C8YndYdlLYTS7DN56M9Cq6qVuOPp6yLTlwrFm\n2pncylPkxYgl0VzVoFobkU2ZJITubl+iE0dnqFsCyP1xdQy2ukTUdo2w9pcU\nfWStXdPK8vkiyy9gfjk4L7a9jUgvfFOAYtaU/l3DPRuZVFWyImAwznLIQiPZ\nPfeZPSZtZyLDVNfvm83R7C4WnCMD5E+YQmtEOQbkCAyh+nsFlp2m4SlUyu+O\nXnVMyMJE48QkyjP3dQ+z03ZDLR0PkNmvZwO0N1eImFy4odDsLgbifZ4/8nmu\nUiCnztlfbS4E5z/ugc34wg/ZZ+hbP5HMTIRN+tav/ybsNa1W/JNuEct3Tspy\n3rEErJq1jAnGW27B3dqTrADQOFnq1ZXOZ7XiN6frZz5hrX73s9CR529uWmzm\nKG3T+iF2jZSMDIGwxtUMJ9T/GNB9CpCJ8ztPDgDoTCRBSHZ1nDzGKx1cv/Ir\nIt7136eC8VGRMTgDdadKOwObrzwKMZ62n9ojI5w4faPYxOgMFNSQaWwWim2T\nSp+3\r\n=R0vA\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIG0EJdwbabRZ0VpbZR7Ev1+GkqWv0AQARDWbkW6TDj+SAiAWYOvDfywFkTbHZSas70q9TPFou90O5hbxEfvq++jncg=="}]},"maintainers":[{"name":"kemitchell","email":"kyle@kemitchell.com"}],"_npmUser":{"name":"kemitchell","email":"kyle@kemitchell.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/spdx-expression-validate_2.0.0_1550268976461_0.7034037104103203"},"_hasShrinkwrap":false}},"readme":"```javascript\nvar assert = require('assert')\nvar valid = require('spdx-expression-validate')\n```\n\n# Simple License Expressions\n```javascript\nassert(!valid('Invalid-Identifier'))\nassert(valid('GPL-2.0'))\nassert(valid('GPL-2.0+'))\nassert(valid('LicenseRef-23'))\nassert(valid('LicenseRef-MIT-Style-1'))\nassert(valid('DocumentRef-spdx-tool-1.2:LicenseRef-MIT-Style-2'))\n```\n\n# Composite License Expressions\n\n## Disjunctive `OR` Operator\n```javascript\nassert(valid('(LGPL-2.1 OR MIT)'))\nassert(valid('(LGPL-2.1 OR MIT OR BSD-3-Clause)'))\n```\n\n## Conjunctive `AND` Operator\n```javascript\nassert(valid('(LGPL-2.1 AND MIT)'))\nassert(valid('(LGPL-2.1 AND MIT AND BSD-2-Clause)'))\n```\n\n## Exception `WITH` Operator\n```javascript\nassert(valid('(GPL-2.0+ WITH Bison-exception-2.2)'))\n```\n\n# Strict Whitespace Rules\n```javascript\nassert(!valid('MIT '))\nassert(!valid(' MIT'))\nassert(!valid('MIT  AND  BSD-3-Clause'))\n```\n\n---\n\n[The Software Package Data Exchange (SPDX) specification](http://spdx.org) is the work of the [Linux Foundation](http://www.linuxfoundation.org) and its contributors, and is licensed under the terms of [the Creative Commons Attribution License 3.0 Unported (SPDX: \"CC-BY-3.0\")](http://spdx.org/licenses/CC-BY-3.0). \"SPDX\" is a United States federally registered trademark of the Linux Foundation.\n","maintainers":[{"name":"kemitchell","email":"kyle@kemitchell.com"}],"time":{"modified":"2022-06-26T22:40:38.534Z","created":"2015-08-02T03:55:26.746Z","1.0.0":"2015-08-02T03:55:26.746Z","1.0.1":"2015-08-02T05:18:47.192Z","1.0.2":"2016-10-05T20:11:16.397Z","2.0.0":"2019-02-15T22:16:16.590Z"},"homepage":"https://github.com/kemitchell/spdx.js","keywords":["SPDX","law","legal","license","metadata","package","package.json","standards"],"repository":{"type":"git","url":"git+https://github.com/kemitchell/spdx-expression-validate.js.git"},"author":{"name":"Kyle E. Mitchell","email":"kyle@kemitchell.com","url":"http://kemitchell.com"},"bugs":{"url":"https://github.com/kemitchell/spdx-expression-validate.js/issues"},"license":"(MIT AND CC-BY-3.0)","readmeFilename":"README.md"}