spdx-expression-parse/000755 001751 001751 0000000000 15165523262017040 5ustar00runner000000 000000 1516552326215165523262spdx-expression-parse/LICENSE000644 001751 001751 0000002165 15165523262020051 0ustar00runner000000 000000 1516552326215165523262 MIT License Copyright (c) Microsoft Corporation. Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE spdx-expression-parse/README.md000644 001751 001751 0000001044 15165523262020314 0ustar00runner000000 000000 1516552330515165523262# Installation > `npm install --save @types/spdx-expression-parse` # Summary This package contains type definitions for spdx-expression-parse (https://github.com/jslicense/spdx-expression-parse.js#readme). # Details Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/spdx-expression-parse. ### Additional Details * Last updated: Wed, 08 Apr 2026 19:04:18 GMT * Dependencies: none # Credits These definitions were written by [Piotr Błażejewicz](https://github.com/peterblazejewicz). spdx-expression-parse/index.d.ts000644 001751 001751 0000001363 15165523262020744 0ustar00runner000000 000000 1516552326215165523262/** * This package parses SPDX license expression strings describing license terms, like `package.json` license strings, * into consistently structured ECMAScript object */ declare function parse(source: string): parse.Info; declare namespace parse { type Info = LicenseInfo | ConjunctionInfo; interface LicenseInfo { license: string; plus?: true | undefined; exception?: string | undefined; } interface ConjunctionInfo { conjunction: "and" | "or"; left: LicenseInfo | ConjunctionInfo; right: LicenseInfo | ConjunctionInfo; } interface Token { type: "OPERATOR" | "LICENSE" | "DOCUMENTREF" | "LICENSEREF" | "EXCEPTION"; string: string; } } export = parse; spdx-expression-parse/package.json000644 001751 001751 0000001575 15165523262021334 0ustar00runner000000 000000 1516552330515165523262{ "name": "@types/spdx-expression-parse", "version": "4.0.0", "description": "TypeScript definitions for spdx-expression-parse", "homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/spdx-expression-parse", "license": "MIT", "contributors": [ { "name": "Piotr Błażejewicz", "githubUsername": "peterblazejewicz", "url": "https://github.com/peterblazejewicz" } ], "main": "", "types": "index.d.ts", "repository": { "type": "git", "url": "https://github.com/DefinitelyTyped/DefinitelyTyped.git", "directory": "types/spdx-expression-parse" }, "scripts": {}, "dependencies": {}, "peerDependencies": {}, "typesPublisherContentHash": "084e99834b89e80d7595fe3df02e93e27fe49cab1ae6df5b11d8c8a5cdb11ec8", "typeScriptVersion": "5.3" }spdx-expression-parse/parse.d.ts000644 001751 001751 0000000143 15165523262020742 0ustar00runner000000 000000 1516552326215165523262import { Info, Token } from "./"; declare function parse(tokens: Token[]): Info; export = parse; spdx-expression-parse/scan.d.ts000644 001751 001751 0000000135 15165523262020555 0ustar00runner000000 000000 1516552326215165523262import { Token } from "./"; declare function scan(source: string): Token[]; export = scan;