{"_id":"spdx-compare","_rev":"3183878","name":"spdx-compare","description":"compare SPDX license expressions","dist-tags":{"latest":"1.0.0"},"maintainers":[{"name":"kemitchell","email":"kyle@kemitchell.com"}],"time":{"modified":"2023-12-06T08:48:42.000Z","created":"2015-07-18T21:07:17.009Z","1.0.0":"2018-03-07T06:23:09.707Z","0.1.2":"2015-08-02T04:06:00.769Z","0.1.0":"2015-07-18T21:07:17.009Z"},"users":{},"author":{"name":"Kyle E. Mitchell","email":"kyle@kemitchell.com","url":"https://kemitchell.com"},"repository":{"type":"git","url":"git+https://github.com/kemitchell/spdx-compare.js.git"},"versions":{"1.0.0":{"name":"spdx-compare","description":"compare SPDX license expressions","version":"1.0.0","author":{"name":"Kyle E. Mitchell","email":"kyle@kemitchell.com","url":"https://kemitchell.com"},"dependencies":{"array-find-index":"^1.0.2","spdx-expression-parse":"^3.0.0","spdx-ranges":"^2.0.0"},"devDependencies":{"defence-cli":"^2.0.1"},"keywords":["SPDX","law","legal","license","metadata","package","package.json","standards"],"license":"MIT","repository":{"type":"git","url":"git+https://github.com/kemitchell/spdx-compare.js.git"},"scripts":{"test":"defence -i javascript README.md | sed 's!spdx-compare!./!' | node"},"gitHead":"cb7853325dc0aafdeeec932590781c1dd4b40ff7","bugs":{"url":"https://github.com/kemitchell/spdx-compare.js/issues"},"homepage":"https://github.com/kemitchell/spdx-compare.js#readme","_id":"spdx-compare@1.0.0","_npmVersion":"5.6.0","_nodeVersion":"8.9.4","_npmUser":{"name":"kemitchell","email":"kyle@kemitchell.com"},"dist":{"shasum":"2c55f117362078d7409e6d7b08ce70a857cd3ed7","size":1831,"noattachment":false,"key":"/spdx-compare/-/spdx-compare-1.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/spdx-compare/download/spdx-compare-1.0.0.tgz"},"maintainers":[{"name":"kemitchell","email":"kyle@kemitchell.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/spdx-compare_1.0.0_1520403789661_0.2744025757271067"},"_hasShrinkwrap":false,"publish_time":1520403789707,"_cnpm_publish_time":1520403789707,"_cnpmcore_publish_time":"2021-12-16T22:37:38.089Z"},"0.1.2":{"name":"spdx-compare","description":"compare SPDX license expressions","version":"0.1.2","author":{"name":"Kyle E. Mitchell","email":"kyle@kemitchell.com","url":"https://kemitchell.com"},"dependencies":{"spdx-expression-parse":"^1.0.0","spdx-ranges":"^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-compare.js.git"},"scripts":{"test":"defence -i javascript README.md | sed 's!spdx-compare!./!' | node"},"gitHead":"47660351317fb2e9abfcd0261628b98a5695ada1","bugs":{"url":"https://github.com/kemitchell/spdx-compare.js/issues"},"homepage":"https://github.com/kemitchell/spdx-compare.js#readme","_id":"spdx-compare@0.1.2","_shasum":"b06af3ea34af7437d91a9f449eaf2d2e93c3c8fb","_from":".","_npmVersion":"2.13.3","_nodeVersion":"0.12.7","_npmUser":{"name":"kemitchell","email":"kyle@kemitchell.com"},"dist":{"shasum":"b06af3ea34af7437d91a9f449eaf2d2e93c3c8fb","size":1604,"noattachment":false,"key":"/spdx-compare/-/spdx-compare-0.1.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/spdx-compare/download/spdx-compare-0.1.2.tgz"},"maintainers":[{"name":"kemitchell","email":"kyle@kemitchell.com"}],"directories":{},"publish_time":1438488360769,"_hasShrinkwrap":false,"_cnpm_publish_time":1438488360769,"_cnpmcore_publish_time":"2021-12-16T22:37:38.330Z"},"0.1.0":{"name":"spdx-compare","description":"compare SPDX license expressions","version":"0.1.0","author":{"name":"Kyle E. Mtichell","email":"kyle@kemitchell.com","url":"https://kemitchell.com"},"dependencies":{"spdx":"0.4.x"},"devDependencies":{"tape":"^4.0.0"},"license":"MIT","main":"spdx-compare.js","repository":{"type":"git","url":"git+https://github.com/kemitchell/spdx-compare.js.git"},"scripts":{"test":"tape test.js"},"gitHead":"dd63ad7bec35e0b8f9e20252fd878d6eb966db90","bugs":{"url":"https://github.com/kemitchell/spdx-compare.js/issues"},"homepage":"https://github.com/kemitchell/spdx-compare.js#readme","_id":"spdx-compare@0.1.0","_shasum":"bc49277c3951d7dafe8f24a9fe9e4c1e0c062724","_from":".","_npmVersion":"2.13.1","_nodeVersion":"0.12.7","_npmUser":{"name":"kemitchell","email":"kyle@kemitchell.com"},"dist":{"shasum":"bc49277c3951d7dafe8f24a9fe9e4c1e0c062724","size":1407,"noattachment":false,"key":"/spdx-compare/-/spdx-compare-0.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/spdx-compare/download/spdx-compare-0.1.0.tgz"},"maintainers":[{"name":"kemitchell","email":"kyle@kemitchell.com"}],"directories":{},"publish_time":1437253637009,"_hasShrinkwrap":false,"_cnpm_publish_time":1437253637009,"_cnpmcore_publish_time":"2021-12-16T22:37:38.551Z"}},"readme":"```javascript\nvar assert = require('assert')\nvar compare = require('spdx-compare')\n\nassert(compare.gt('GPL-3.0', 'GPL-2.0'))\nassert(compare.gt('GPL-3.0-only', 'GPL-2.0-only'))\nassert(compare.gt('GPL-2.0-or-later', 'GPL-2.0-only'))\nassert(compare.eq('GPL-3.0-or-later', 'GPL-3.0-only'))\nassert(compare.lt('MPL-1.0', 'MPL-2.0'))\n\nassert(compare.gt('LPPL-1.3a', 'LPPL-1.0'))\nassert(compare.gt('LPPL-1.3c', 'LPPL-1.3a'))\nassert(!compare.gt('MIT', 'ISC'))\nassert(!compare.gt('OSL-1.0', 'OPL-1.0'))\nassert(compare.gt('AGPL-3.0', 'AGPL-1.0'))\n\nassert.throws(function () {\n  compare.gt('(MIT OR ISC)', 'GPL-3.0')\n}, '\"(MIT OR ISC)\" is not a simple license identifier')\n```\n","_attachments":{},"homepage":"https://github.com/kemitchell/spdx-compare.js#readme","bugs":{"url":"https://github.com/kemitchell/spdx-compare.js/issues"},"license":"MIT"}