Skip to main content

platformMatches

@webda/oci


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 | undefined

platform of the index entry

wanted​

Platform

requested platform

Returns​

boolean

true when matching