⚝
One Hat Cyber Team
⚝
Your IP:
172.22.0.1
Server IP:
151.80.20.34
Server:
Linux 794f04d97d5e 5.15.0-143-generic #153-Ubuntu SMP Fri Jun 13 19:10:45 UTC 2025 x86_64
Server Software:
Apache/2.4.62 (Debian)
PHP Version:
8.2.28
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
usr
/
share
/
nodejs
/
@types
/
spdx-expression-parse
/
Edit File: index.d.ts
// Type definitions for spdx-expression-parse 3.0 // Project: https://github.com/jslicense/spdx-expression-parse.js#readme // Definitions by: Piotr Błażejewicz <https://github.com/peterblazejewicz> // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped /** * 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 | ConjuctionInfo; interface LicenseInfo { license: string; plus?: true | undefined; } interface ConjuctionInfo { conjunction: 'and' | 'or'; left: LicenseInfo | ConjuctionInfo; right: LicenseInfo | ConjuctionInfo; } interface Token { type: 'OPERATOR' | 'LICENSE' | 'DOCUMENTREF' | 'LICENSEREF' | 'EXCEPTION'; string: string; } } export = parse;
Simpan