{"_id":"spdx-satisfies","_rev":"3182281","name":"spdx-satisfies","description":"test whether SPDX expressions satisfy licensing criteria","dist-tags":{"latest":"5.0.1"},"maintainers":[{"name":"kemitchell","email":"kyle@kemitchell.com"}],"time":{"modified":"2023-12-06T08:44:23.000Z","created":"2015-07-18T21:16:34.125Z","5.0.1":"2021-05-09T16:18:07.889Z","5.0.0":"2019-03-02T03:51:15.894Z","4.0.1":"2018-12-14T18:03:52.690Z","4.0.0":"2018-03-07T19:16:39.870Z","0.1.3":"2015-08-02T04:22:46.273Z","0.1.2":"2015-07-19T07:32:40.451Z","0.1.1":"2015-07-18T21:18:27.269Z","0.1.0":"2015-07-18T21:16:34.125Z"},"users":{},"author":{"name":"Kyle E. Mitchell","email":"kyle@kemitchell.com","url":"https://kemitchell.com"},"repository":{"type":"git","url":"git+https://github.com/kemitchell/spdx-satisfies.js.git"},"versions":{"5.0.1":{"name":"spdx-satisfies","description":"test whether SPDX expressions satisfy licensing criteria","version":"5.0.1","author":{"name":"Kyle E. Mitchell","email":"kyle@kemitchell.com","url":"https://kemitchell.com"},"contributors":[{"name":"Kyle E. Mitchell","email":"kyle@kemitchell.com","url":"https://kemitchell.com"},{"name":"Dan Butvinik","email":"butvinik@outlook.com"},{"name":"Jeff McAffer","email":"jeffmcaffer@gmail.com"}],"dependencies":{"spdx-compare":"^1.0.0","spdx-expression-parse":"^3.0.0","spdx-ranges":"^2.0.0"},"devDependencies":{"defence-cli":"^2.0.1","replace-require-self":"^1.1.1","standard":"^11.0.0"},"keywords":["SPDX","law","legal","license","metadata","package","package.json","standards"],"license":"MIT","repository":{"type":"git","url":"git+https://github.com/kemitchell/spdx-satisfies.js.git"},"scripts":{"test":"defence -i javascript README.md | replace-require-self | node","lint":"standard"},"gitHead":"77bab7cf13401bce9773ada2c39137fc21a33444","bugs":{"url":"https://github.com/kemitchell/spdx-satisfies.js/issues"},"homepage":"https://github.com/kemitchell/spdx-satisfies.js#readme","_id":"spdx-satisfies@5.0.1","_nodeVersion":"14.15.1","_npmVersion":"7.12.0","dist":{"shasum":"9feeb2524686c08e5f7933c16248d4fdf07ed6a6","size":2817,"noattachment":false,"key":"/spdx-satisfies/-/spdx-satisfies-5.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/spdx-satisfies/download/spdx-satisfies-5.0.1.tgz"},"_npmUser":{"name":"kemitchell","email":"kyle@kemitchell.com"},"directories":{},"maintainers":[{"name":"kemitchell","email":"kyle@kemitchell.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/spdx-satisfies_5.0.1_1620577087731_0.3118477424917778"},"_hasShrinkwrap":false,"publish_time":1620577087889,"_cnpm_publish_time":1620577087889,"_cnpmcore_publish_time":"2021-12-16T21:08:44.576Z"},"5.0.0":{"name":"spdx-satisfies","description":"test whether SPDX expressions satisfy licensing criteria","version":"5.0.0","author":{"name":"Kyle E. Mitchell","email":"kyle@kemitchell.com","url":"https://kemitchell.com"},"contributors":[{"name":"Kyle E. Mitchell","email":"kyle@kemitchell.com","url":"https://kemitchell.com"},{"name":"Dan Butvinik","email":"butvinik@outlook.com"},{"name":"Jeff McAffer","email":"jeffmcaffer@gmail.com"}],"dependencies":{"spdx-compare":"^1.0.0","spdx-expression-parse":"^3.0.0","spdx-ranges":"^2.0.0"},"devDependencies":{"defence-cli":"^2.0.1","replace-require-self":"^1.1.1","standard":"^11.0.0"},"keywords":["SPDX","law","legal","license","metadata","package","package.json","standards"],"license":"MIT","repository":{"type":"git","url":"git+https://github.com/kemitchell/spdx-satisfies.js.git"},"scripts":{"test":"defence -i javascript README.md | replace-require-self | node","lint":"standard"},"gitHead":"a4d27d9711a333fecda4c9b83f0d549eb06d5dfc","bugs":{"url":"https://github.com/kemitchell/spdx-satisfies.js/issues"},"homepage":"https://github.com/kemitchell/spdx-satisfies.js#readme","_id":"spdx-satisfies@5.0.0","_npmVersion":"6.4.1","_nodeVersion":"10.15.1","_npmUser":{"name":"kemitchell","email":"kyle@kemitchell.com"},"dist":{"shasum":"d740b8f14caeada36fb307629dee87146970a256","size":2808,"noattachment":false,"key":"/spdx-satisfies/-/spdx-satisfies-5.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/spdx-satisfies/download/spdx-satisfies-5.0.0.tgz"},"maintainers":[{"name":"kemitchell","email":"kyle@kemitchell.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/spdx-satisfies_5.0.0_1551498675651_0.7979161593893818"},"_hasShrinkwrap":false,"publish_time":1551498675894,"_cnpm_publish_time":1551498675894,"_cnpmcore_publish_time":"2021-12-16T21:08:44.903Z"},"4.0.1":{"name":"spdx-satisfies","description":"test whether SPDX expressions satisfy licensing criteria","version":"4.0.1","author":{"name":"Kyle E. Mitchell","email":"kyle@kemitchell.com","url":"https://kemitchell.com"},"contributors":[{"name":"Kyle E. Mitchell","email":"kyle@kemitchell.com","url":"https://kemitchell.com"},{"name":"Dan Butvinik","email":"butvinik@outlook.com"}],"dependencies":{"spdx-compare":"^1.0.0","spdx-expression-parse":"^3.0.0","spdx-ranges":"^2.0.0"},"devDependencies":{"defence-cli":"^2.0.1","replace-require-self":"^1.1.1","standard":"^11.0.0"},"keywords":["SPDX","law","legal","license","metadata","package","package.json","standards"],"license":"MIT","repository":{"type":"git","url":"git+https://github.com/kemitchell/spdx-satisfies.js.git"},"scripts":{"test":"defence -i javascript README.md | replace-require-self | node","lint":"standard"},"gitHead":"edbc31121e5da4fc3fb47172cc6b369ab6603ccd","bugs":{"url":"https://github.com/kemitchell/spdx-satisfies.js/issues"},"homepage":"https://github.com/kemitchell/spdx-satisfies.js#readme","_id":"spdx-satisfies@4.0.1","_npmVersion":"6.4.1","_nodeVersion":"8.14.0","_npmUser":{"name":"kemitchell","email":"kyle@kemitchell.com"},"dist":{"shasum":"9a09a68d80f5f1a31cfaebb384b0c6009e4969fe","size":2575,"noattachment":false,"key":"/spdx-satisfies/-/spdx-satisfies-4.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/spdx-satisfies/download/spdx-satisfies-4.0.1.tgz"},"maintainers":[{"name":"kemitchell","email":"kyle@kemitchell.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/spdx-satisfies_4.0.1_1544810632589_0.6715661476517658"},"_hasShrinkwrap":false,"publish_time":1544810632690,"_cnpm_publish_time":1544810632690,"_cnpmcore_publish_time":"2021-12-16T21:08:45.120Z"},"4.0.0":{"name":"spdx-satisfies","description":"test whether SPDX expressions satisfy licensing criteria","version":"4.0.0","author":{"name":"Kyle E. Mitchell","email":"kyle@kemitchell.com","url":"https://kemitchell.com"},"dependencies":{"spdx-compare":"^1.0.0","spdx-expression-parse":"^3.0.0","spdx-ranges":"^2.0.0"},"devDependencies":{"defence-cli":"^2.0.1","replace-require-self":"^1.1.1","standard":"^11.0.0"},"keywords":["SPDX","law","legal","license","metadata","package","package.json","standards"],"license":"MIT","repository":{"type":"git","url":"git+https://github.com/kemitchell/spdx-satisfies.js.git"},"scripts":{"test":"defence -i javascript README.md | replace-require-self | node","lint":"standard"},"gitHead":"4b0c7074ac2019634fda93563bc0dc2982d8f9c3","bugs":{"url":"https://github.com/kemitchell/spdx-satisfies.js/issues"},"homepage":"https://github.com/kemitchell/spdx-satisfies.js#readme","_id":"spdx-satisfies@4.0.0","_npmVersion":"5.6.0","_nodeVersion":"8.9.4","_npmUser":{"name":"kemitchell","email":"kyle@kemitchell.com"},"dist":{"shasum":"ebc79eec88b68ac75618e2e5ee94fbc347587552","size":2070,"noattachment":false,"key":"/spdx-satisfies/-/spdx-satisfies-4.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/spdx-satisfies/download/spdx-satisfies-4.0.0.tgz"},"maintainers":[{"name":"kemitchell","email":"kyle@kemitchell.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/spdx-satisfies_4.0.0_1520450199704_0.5868052841429579"},"_hasShrinkwrap":false,"publish_time":1520450199870,"_cnpm_publish_time":1520450199870,"_cnpmcore_publish_time":"2021-12-16T21:08:45.355Z"},"0.1.3":{"name":"spdx-satisfies","description":"test whether SPDX expressions satisfy licensing criteria","version":"0.1.3","author":{"name":"Kyle E. Mitchell","email":"kyle@kemitchell.com","url":"https://kemitchell.com"},"dependencies":{"spdx-compare":"^0.1.2","spdx-expression-parse":"^1.0.0"},"devDependencies":{"defence-cli":"^1.0.1"},"keywords":["SPDX","law","legal","license","metadata","package","package.json","standards"],"license":"MIT","repository":{"type":"git","url":"git+https://github.com/kemitchell/spdx-satisfies.js.git"},"scripts":{"test":"defence -i javascript README.md | sed 's!spdx-satisfies!./!' | node"},"gitHead":"4429ca1b970aadb3ca1f9364204bf531be892ff1","bugs":{"url":"https://github.com/kemitchell/spdx-satisfies.js/issues"},"homepage":"https://github.com/kemitchell/spdx-satisfies.js#readme","_id":"spdx-satisfies@0.1.3","_shasum":"67a1f274e6115d4aae28afe474db76164be10bdc","_from":".","_npmVersion":"2.13.3","_nodeVersion":"0.12.7","_npmUser":{"name":"kemitchell","email":"kyle@kemitchell.com"},"dist":{"shasum":"67a1f274e6115d4aae28afe474db76164be10bdc","size":1813,"noattachment":false,"key":"/spdx-satisfies/-/spdx-satisfies-0.1.3.tgz","tarball":"http://registry.cnpm.dingdandao.com/spdx-satisfies/download/spdx-satisfies-0.1.3.tgz"},"maintainers":[{"name":"kemitchell","email":"kyle@kemitchell.com"}],"directories":{},"publish_time":1438489366273,"_hasShrinkwrap":false,"_cnpm_publish_time":1438489366273,"_cnpmcore_publish_time":"2021-12-16T21:08:45.583Z"},"0.1.2":{"name":"spdx-satisfies","description":"test whether SPDX expressions satisfy licensing criteria","version":"0.1.2","author":{"name":"Kyle E. Mitchell","email":"kyle@kemitchell.com","url":"https://kemitchell.com"},"dependencies":{"spdx":"0.4.x","spdx-compare":"0.1.x"},"devDependencies":{"jsmd-tape":"^0.1.0","tape":"4.x"},"license":"MIT","main":"spdx-satisfies.js","repository":{"type":"git","url":"git+https://github.com/kemitchell/spdx-satisfies.js.git"},"scripts":{"test":"jsmd-tape README.md | node"},"gitHead":"eb2d08e84e5d596233b9ef241c88ee8e59801a93","bugs":{"url":"https://github.com/kemitchell/spdx-satisfies.js/issues"},"homepage":"https://github.com/kemitchell/spdx-satisfies.js#readme","_id":"spdx-satisfies@0.1.2","_shasum":"a558d63c6e01b56eefeb530af01d219519387204","_from":".","_npmVersion":"2.13.1","_nodeVersion":"0.12.7","_npmUser":{"name":"kemitchell","email":"kyle@kemitchell.com"},"dist":{"shasum":"a558d63c6e01b56eefeb530af01d219519387204","size":1132,"noattachment":false,"key":"/spdx-satisfies/-/spdx-satisfies-0.1.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/spdx-satisfies/download/spdx-satisfies-0.1.2.tgz"},"maintainers":[{"name":"kemitchell","email":"kyle@kemitchell.com"}],"directories":{},"publish_time":1437291160451,"_hasShrinkwrap":false,"_cnpm_publish_time":1437291160451,"_cnpmcore_publish_time":"2021-12-16T21:08:45.762Z"},"0.1.1":{"name":"spdx-satisfies","description":"test whether SPDX expressions satisfy licensing criteria","version":"0.1.1","author":{"name":"Kyle E. Mitchell","email":"kyle@kemitchell.com","url":"https://kemitchell.com"},"dependencies":{"spdx":"0.4.x","spdx-compare":"0.1.x"},"devDependencies":{"tape":"4.x"},"license":"MIT","main":"spdx-satisfies.js","repository":{"type":"git","url":"git+https://github.com/kemitchell/spdx-satisfies.js.git"},"scripts":{"test":"tape test.js"},"gitHead":"345d0b7a6ca253596e47f8a46bee0be1a1dc46d7","bugs":{"url":"https://github.com/kemitchell/spdx-satisfies.js/issues"},"homepage":"https://github.com/kemitchell/spdx-satisfies.js#readme","_id":"spdx-satisfies@0.1.1","_shasum":"0ba0992355bfb79877f0cd10140511f7e7cacb26","_from":".","_npmVersion":"2.13.1","_nodeVersion":"0.12.7","_npmUser":{"name":"kemitchell","email":"kyle@kemitchell.com"},"dist":{"shasum":"0ba0992355bfb79877f0cd10140511f7e7cacb26","size":2001,"noattachment":false,"key":"/spdx-satisfies/-/spdx-satisfies-0.1.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/spdx-satisfies/download/spdx-satisfies-0.1.1.tgz"},"maintainers":[{"name":"kemitchell","email":"kyle@kemitchell.com"}],"directories":{},"publish_time":1437254307269,"_hasShrinkwrap":false,"_cnpm_publish_time":1437254307269,"_cnpmcore_publish_time":"2021-12-16T21:08:46.013Z"},"0.1.0":{"name":"spdx-satisfies","description":"test whether SPDX expressions satisfy licensing criteria","version":"0.1.0","author":{"name":"Kyle E. Mitchell","email":"kyle@kemitchell.com","url":"https://kemitchell.com"},"dependencies":{"spdx":"0.4.x","spdx-compare":"0.1.x"},"devDependencies":{"tape":"4.x"},"license":"MIT","main":"spdx-satisfies.js","repository":{"type":"git","url":"git+https://github.com/kemitchell/spdx-satisfies.js.git"},"scripts":{"test":"tape test.js"},"gitHead":"b46e0c33d226fae0db60dc748e90bcb8b6f13983","bugs":{"url":"https://github.com/kemitchell/spdx-satisfies.js/issues"},"homepage":"https://github.com/kemitchell/spdx-satisfies.js#readme","_id":"spdx-satisfies@0.1.0","_shasum":"575ce5c172f0b1dbab7e392a0742fffddf091dee","_from":".","_npmVersion":"2.13.1","_nodeVersion":"0.12.7","_npmUser":{"name":"kemitchell","email":"kyle@kemitchell.com"},"dist":{"shasum":"575ce5c172f0b1dbab7e392a0742fffddf091dee","size":1222,"noattachment":false,"key":"/spdx-satisfies/-/spdx-satisfies-0.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/spdx-satisfies/download/spdx-satisfies-0.1.0.tgz"},"maintainers":[{"name":"kemitchell","email":"kyle@kemitchell.com"}],"directories":{},"publish_time":1437254194125,"_hasShrinkwrap":false,"_cnpm_publish_time":1437254194125,"_cnpmcore_publish_time":"2021-12-16T21:08:46.210Z"}},"readme":"```javascript\nvar assert = require('assert')\nvar satisfies = require('spdx-satisfies')\n\nassert(satisfies('MIT', 'MIT'))\n\nassert(satisfies('MIT', '(ISC OR MIT)'))\nassert(satisfies('Zlib', '(ISC OR (MIT OR Zlib))'))\nassert(!satisfies('GPL-3.0', '(ISC OR MIT)'))\n\nassert(satisfies('GPL-2.0', 'GPL-2.0+'))\nassert(satisfies('GPL-3.0', 'GPL-2.0+'))\nassert(satisfies('GPL-1.0+', 'GPL-2.0+'))\nassert(!satisfies('GPL-1.0', 'GPL-2.0+'))\nassert(satisfies('GPL-2.0-only', 'GPL-2.0-only'))\nassert(satisfies('GPL-3.0-only', 'GPL-2.0+'))\nassert(satisfies('LGPL-3.0-only', 'LGPL-3.0-or-later'))\nassert(satisfies('GPL-2.0', 'GPL-2.0+'))\nassert(satisfies('GPL-2.0-only', 'GPL-2.0+'))\nassert(satisfies('GPL-2.0', 'GPL-2.0-or-later'))\n\nassert(!satisfies(\n  'GPL-2.0',\n  'GPL-2.0+ WITH Bison-exception-2.2'\n))\n\nassert(satisfies(\n  'GPL-3.0 WITH Bison-exception-2.2',\n  'GPL-2.0+ WITH Bison-exception-2.2'\n))\n\nassert(satisfies('(MIT OR GPL-2.0)', '(ISC OR MIT)'))\nassert(satisfies('(MIT AND GPL-2.0)', '(MIT AND GPL-2.0)'))\nassert(satisfies('MIT AND GPL-2.0 AND ISC', 'MIT AND GPL-2.0 AND ISC'))\nassert(satisfies('MIT AND GPL-2.0 AND ISC', 'ISC AND GPL-2.0 AND MIT'))\nassert(satisfies('(MIT OR GPL-2.0) AND ISC', 'MIT AND ISC'))\nassert(satisfies('MIT AND ISC', '(MIT OR GPL-2.0) AND ISC'))\nassert(satisfies('MIT AND ISC', '(MIT AND GPL-2.0) OR ISC'))\nassert(satisfies('(MIT OR Apache-2.0) AND (ISC OR GPL-2.0)', 'Apache-2.0 AND ISC'))\nassert(satisfies('(MIT OR Apache-2.0) AND (ISC OR GPL-2.0)', 'Apache-2.0 OR ISC'))\nassert(satisfies('(MIT AND GPL-2.0)', '(MIT OR GPL-2.0)'))\nassert(satisfies('(MIT AND GPL-2.0)', '(GPL-2.0 AND MIT)'))\nassert(satisfies('MIT', '(GPL-2.0 OR MIT) AND (MIT OR ISC)'))\nassert(satisfies('MIT AND ICU', '(MIT AND GPL-2.0) OR (ISC AND (Apache-2.0 OR ICU))'))\nassert(!satisfies('(MIT AND GPL-2.0)', '(ISC OR GPL-2.0)'))\nassert(!satisfies('MIT AND (GPL-2.0 OR ISC)', 'MIT'))\nassert(!satisfies('(MIT OR Apache-2.0) AND (ISC OR GPL-2.0)', 'MIT'))\n```\n","_attachments":{},"homepage":"https://github.com/kemitchell/spdx-satisfies.js#readme","bugs":{"url":"https://github.com/kemitchell/spdx-satisfies.js/issues"},"license":"MIT"}