MCPcopy Create free account
hub / github.com/code-pushup/cli / isEnvVarEnabled

Function isEnvVarEnabled

packages/utils/src/lib/env.ts:14–22  ·  view source on GitHub ↗
(name: string)

Source from the content-addressed store, hash-verified

12}
13
14export function isEnvVarEnabled(name: string): boolean {
15 const value = coerceBooleanValue(process.env[name]);
16
17 if (typeof value === 'boolean') {
18 return value;
19 }
20
21 return false;
22}
23
24export function coerceBooleanValue(value: unknown): boolean | undefined {
25 if (typeof value === 'boolean') {

Callers 6

constructorMethod · 0.85
env.unit.test.tsFile · 0.85
isCIFunction · 0.85
LoggerClass · 0.85
constructorMethod · 0.85
constructorMethod · 0.85

Calls 1

coerceBooleanValueFunction · 0.85

Tested by

no test coverage detected