UNPKG

setup-cpp

Version:

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

16 lines (14 loc) 286 B
import memoizee from "memoizee" import which from "which" async function hasApk_() { try { await which("apk") return true } catch (error) { return false } } /** * Check if apk is available on the system */ export const hasApk = memoizee(hasApk_, { promise: true })