UNPKG

setup-cpp

Version:

Install all the tools required for building and testing C++/C projects.

16 lines (14 loc) 277 B
import { pathExistsSync } from "path-exists" /** * Check if the current platform is Alpine */ export function isAlpine() { if (process.platform !== "linux") { return false } try { return pathExistsSync("/etc/alpine-release") } catch { return false } }