UNPKG

branchyard

Version:

branchyard — Your shipyard for parallel development workflows. Maintain your digital yard with clean branches, productive workflows, and AI-era readiness.

14 lines (13 loc) 300 B
import { $ } from "bun"; export async function commandExists(command: string): Promise<boolean> { try { if (process.platform === "win32") { await $`where ${command}`.quiet(); } else { await $`which ${command}`.quiet(); } return true; } catch { return false; } }