UNPKG

@porosys/pss

Version:

Porosys Server Setup (pss): General-purpose server setup and automation tool (including Netdata management)

11 lines (10 loc) 204 B
import { execa } from 'execa'; export const isBinaryInstalled = async (binary) => { try { await execa('which', [binary]); return true; } catch { return false; } };