UNPKG

motion

Version:

motion - moving development forward

75 lines (74 loc) 3.82 kB
{ "_args": [ [ "spdx-expression-parse@https://registry.npmjs.org/spdx-expression-parse/-/spdx-expression-parse-1.0.2.tgz", "/Users/nw/flint/packages/flint" ] ], "_from": "spdx-expression-parse@>=1.0.0 <1.1.0", "_id": "spdx-expression-parse@1.0.2", "_inCache": true, "_location": "/spdx-expression-parse", "_phantomChildren": {}, "_requested": { "name": "spdx-expression-parse", "raw": "spdx-expression-parse@https://registry.npmjs.org/spdx-expression-parse/-/spdx-expression-parse-1.0.2.tgz", "rawSpec": "https://registry.npmjs.org/spdx-expression-parse/-/spdx-expression-parse-1.0.2.tgz", "scope": null, "spec": "https://registry.npmjs.org/spdx-expression-parse/-/spdx-expression-parse-1.0.2.tgz", "type": "remote" }, "_requiredBy": [ "/validate-npm-package-license" ], "_resolved": "https://registry.npmjs.org/spdx-expression-parse/-/spdx-expression-parse-1.0.2.tgz", "_shasum": "d52b14b5e9670771440af225bcb563122ac452f6", "_shrinkwrap": null, "_spec": "spdx-expression-parse@https://registry.npmjs.org/spdx-expression-parse/-/spdx-expression-parse-1.0.2.tgz", "_where": "/Users/nw/flint/packages/flint", "author": { "email": "kyle@kemitchell.com", "name": "Kyle E. Mitchell", "url": "http://kemitchell.com" }, "bugs": { "url": "https://github.com/kemitchell/spdx-expression-parse.js/issues" }, "dependencies": { "spdx-exceptions": "^1.0.4", "spdx-license-ids": "^1.0.0" }, "description": "parse SPDX license expressions", "devDependencies": { "defence-cli": "^1.0.1", "jison": "^0.4.15", "replace-require-self": "^1.0.0", "uglify-js": "^2.4.24" }, "homepage": "https://github.com/kemitchell/spdx-expression-parse.js#readme", "keywords": [ "SPDX", "law", "legal", "license", "metadata", "package", "package.json", "standards" ], "license": "(MIT AND CC-BY-3.0)", "name": "spdx-expression-parse", "optionalDependencies": {}, "readme": "```javascript\nvar parse = require('spdx-expression-parse')\nvar assert = require('assert')\n\nvar firstAST = {\n left: { license: 'LGPL-2.1' },\n conjunction: 'or',\n right: {\n left: { license: 'BSD-3-Clause' },\n conjunction: 'and',\n right: { license: 'MIT' } } }\n\nassert.deepEqual(\n parse('(LGPL-2.1 OR BSD-3-Clause AND MIT)'),\n firstAST)\n\nvar secondAST = {\n left: { license: 'MIT' },\n conjunction: 'and',\n right: {\n left: {\n\t license: 'LGPL-2.1',\n\t plus: true },\n conjunction: 'and',\n right: { license: 'BSD-3-Clause' } } }\n\nassert.deepEqual(\n parse('(MIT AND (LGPL-2.1+ AND BSD-3-Clause))'),\n secondAST)\n\n// We handle all the bare SPDX license and exception ids as well.\nrequire('spdx-license-ids').forEach(function(id) {\n assert.deepEqual(\n parse(id),\n { license: id })\n require('spdx-exceptions').forEach(function(e) {\n assert.deepEqual(\n parse(id + ' WITH ' + e),\n { license: id, exception: e }) }) })\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", "readmeFilename": "README.md", "repository": { "type": "git", "url": "git+https://github.com/kemitchell/spdx-expression-parse.js.git" }, "scripts": { "prepublish": "node generate-parser.js | uglifyjs > parser.generated.js", "pretest": "npm run prepublish", "test": "defence -i javascript README.md | replace-require-self | node" }, "version": "1.0.2" }