Whether an executable could be a JavaScript runtime that runs CodeGraph.
(name: string)
| 129 | |
| 130 | /** Whether an executable could be a JavaScript runtime that runs CodeGraph. */ |
| 131 | function mayRunCodeGraph(name: string): boolean { |
| 132 | const base = path.basename(name.replace(/\\/g, '/')).toLowerCase().replace(/\.exe$/, ''); |
| 133 | return /node|codegraph|bun|deno/.test(base); |
| 134 | } |
| 135 | |
| 136 | /** |
| 137 | * What a live lock holder is. The command line decides when the OS gives it; |
no outgoing calls
no test coverage detected