Environment variables are always strings, so this helper provides
consistent boolean parsing across the codebase. Also handles
the case where a boolean is passed through directly (e.g., from
a pre-parsed config object).
Parameters
value: string|boolean|undefined
The environment variable value
Returns boolean
true if value equals 'true' (case-insensitive) or is boolean true, false otherwise
Parse an environment variable as a boolean.
Environment variables are always strings, so this helper provides consistent boolean parsing across the codebase. Also handles the case where a boolean is passed through directly (e.g., from a pre-parsed config object).