Check if a package name's libc suffix matches the system's libc.
Only relevant for Linux - returns true for all other platforms.
On modern Node (>= 4), uses detect-libc directly.
On old Node (0.x), calls this same file via function-exec-sync.
Parameters
packageName: string
Returns boolean
Example
matchesLibc('@swc/core-linux-x64-gnu') // true on glibc systems matchesLibc('@swc/core-linux-x64-musl') // true on musl systems matchesLibc('@swc/core-darwin-arm64') // true (no libc suffix)
Check if a package name's libc suffix matches the system's libc. Only relevant for Linux - returns true for all other platforms.
On modern Node (>= 4), uses detect-libc directly. On old Node (0.x), calls this same file via function-exec-sync.