(value: string | undefined)
| 44 | // --------------------------------------------------------------------------- |
| 45 | |
| 46 | const truthy = (value: string | undefined): boolean => { |
| 47 | if (value === undefined) return false; |
| 48 | const normalized = value.trim().toLowerCase(); |
| 49 | return normalized === "1" || normalized === "true" || normalized === "yes"; |
| 50 | }; |
| 51 | |
| 52 | export const isAnalyticsDisabled = ( |
| 53 | env: Readonly<Record<string, string | undefined>> = process.env, |
no outgoing calls
no test coverage detected