MCPcopy Create free account
hub / github.com/tiann/hapi / isWindows

Function isWindows

cli/src/utils/process.ts:4–4  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

2import spawn from 'cross-spawn';
3
4export const isWindows = (): boolean => process.platform === 'win32';
5
6export function isProcessAlive(pid: number): boolean {
7 if (!Number.isFinite(pid) || pid <= 0) {

Callers 4

startRunnerFunction · 0.90
killProcessFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected