(name: string)
| 12 | } |
| 13 | |
| 14 | export 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 | |
| 24 | export function coerceBooleanValue(value: unknown): boolean | undefined { |
| 25 | if (typeof value === 'boolean') { |
no test coverage detected