install-optional
    Preparing search index...

    Function matchesLibc

    • 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

      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)