agree
Whether two raw license strings agree closely enough to count as “no real conflict” — true
when their family sets share at least one real (known) family, or when either side is entirely
unknown (e.g. "custom"/"unknown") — a vague claim is never itself evidence of disagreement.
Only two different, both-known family sets (e.g. bsd vs apache) count as a real conflict.
Available since v3.1.2
Import
Section titled “Import”Signature
Section titled “Signature”Parameters
Section titled “Parameters”| Parameter | Type | Description |
|---|---|---|
a | string | The first raw license string |
b | string | The second raw license string |
Returns
Section titled “Returns”boolean — true when the two strings can be treated as the same license (or too vague to tell), false on a real family conflict
Examples
Section titled “Examples”Reconcile notation drift across sources
Section titled “Reconcile notation drift across sources”Two package sources reporting the same real license under different notation.
Flag a real license conflict
Section titled “Flag a real license conflict”Two sources genuinely disagreeing on the license family — a real data-quality signal.
A vague claim is never itself a conflict
Section titled “A vague claim is never itself a conflict”When either side is non-informative (“custom”, “unknown”, …), there is nothing real to disagree with.
