isKnown
Whether a raw license string resolves to at least one recognized family — false for an
empty string, a purely non-informative claim ("custom", "unknown", "LicenseRef-EULA",
…), or a compound expression where every token is non-informative.
Available since v3.1.2
Import
Section titled “Import”Signature
Section titled “Signature”Parameters
Section titled “Parameters”| Parameter | Type | Description |
|---|---|---|
raw | string | The raw license string to check |
Returns
Section titled “Returns”boolean — true if at least one token in raw resolves to a real family
Examples
Section titled “Examples”Filter out entries with no real license information
Section titled “Filter out entries with no real license information”Handy for flagging catalog entries whose license field is not actually usable.
A vendor-specific EULA is not a recognized family
Section titled “A vendor-specific EULA is not a recognized family”“custom:
