MCPcopy Create free account
hub / github.com/EvoMap/evolver / parseBoolEnv

Function parseBoolEnv

index.js:394–401  ·  view source on GitHub ↗
(v, fallback)

Source from the content-addressed store, hash-verified

392}
393
394function parseBoolEnv(v, fallback) {
395 if (v == null) return fallback;
396 const s = String(v).toLowerCase().trim();
397 if (s === '' ) return fallback;
398 if (s === 'false' || s === '0' || s === 'off' || s === 'no') return false;
399 if (s === 'true' || s === '1' || s === 'on' || s === 'yes') return true;
400 return fallback;
401}
402
403class CycleTimeoutError extends Error {
404 constructor(timeoutMs, phase, cycleNum) {

Callers 3

spawnReplacementProcessFunction · 0.85
mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected