UNPKG

@porosys/pss

Version:

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

11 lines (9 loc) 209 B
import { execa } from 'execa'; export const isBinaryInstalled = async (binary: string): Promise<boolean> => { try { await execa('which', [binary]); return true; } catch { return false; } };