MCPcopy Create free account
hub / github.com/heygen-com/hyperframes / envBool

Function envBool

packages/engine/src/config.ts:329–333  ·  view source on GitHub ↗
(key: string, fallback: boolean)

Source from the content-addressed store, hash-verified

327 return Number.isFinite(n) ? n : fallback;
328 };
329 const envBool = (key: string, fallback: boolean): boolean => {
330 const raw = env(key);
331 if (raw === undefined) return fallback;
332 return raw === "true";
333 };
334 const envVp9CpuUsed = (): number => {
335 const raw = env("PRODUCER_VP9_CPU_USED");
336 if (raw === undefined || raw === "") return DEFAULT_CONFIG.vp9CpuUsed;

Callers 1

resolveConfigFunction · 0.85

Calls 1

envFunction · 0.85

Tested by

no test coverage detected