MCPcopy Index your code
hub / github.com/simstudioai/sim / checkNodeAvailable

Function checkNodeAvailable

apps/sim/lib/execution/isolated-vm.ts:20–29  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

18let nodeAvailable: boolean | null = null
19
20function checkNodeAvailable(): boolean {
21 if (nodeAvailable !== null) return nodeAvailable
22 try {
23 execSync('node --version', { stdio: 'ignore' })
24 nodeAvailable = true
25 } catch {
26 nodeAvailable = false
27 }
28 return nodeAvailable
29}
30
31export interface IsolatedVMExecutionRequest {
32 code: string

Callers 1

spawnWorkerFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected