platformMatches
Function: platformMatches()
platformMatches(
candidate,wanted):boolean
Defined in: packages/oci/src/oci.ts:190
Check whether a platform of an index matches the requested one
A requested platform without variant matches any variant, except for arm64 where an
index entry without variant or with v8 both match.
Parameters
candidate
platform of the index entry
wanted
requested platform
Returns
boolean
true when matching