Files
Moltbot/src/daemon/runtime-binary.ts
2026-02-22 21:19:09 +00:00

12 lines
357 B
TypeScript

import path from "node:path";
export function isNodeRuntime(execPath: string): boolean {
const base = path.basename(execPath).toLowerCase();
return base === "node" || base === "node.exe";
}
export function isBunRuntime(execPath: string): boolean {
const base = path.basename(execPath).toLowerCase();
return base === "bun" || base === "bun.exe";
}