Checks package os/cpu field compatibility.
npm packages can restrict which platforms they support via
the os and cpu fields in package.json. Delegates to
NPM.Platform for actual OS/CPU detection.
Summary
Functions
Scans packages for platform incompatibilities.
Checks both os and cpu compatibility.
Checks if the current CPU is compatible with a package's cpu field.
Returns the current CPU architecture (npm convention).
Returns the current operating system name (npm convention).
Checks if the current OS is compatible with a package's os field.
Functions
Scans packages for platform incompatibilities.
Checks both os and cpu compatibility.
Checks if the current CPU is compatible with a package's cpu field.
@spec current_cpu() :: String.t()
Returns the current CPU architecture (npm convention).
@spec current_os() :: String.t()
Returns the current operating system name (npm convention).
Checks if the current OS is compatible with a package's os field.