Skip to content

isEnvVariableOff

Determines whether the environment variable is set to an off value (0, false, no, or off, case-insensitively and ignoring surrounding whitespace).

Import:

import { isEnvVariableOff } from '@mnaoumov/typescript-dev-toolkit/env-toggle';

Signature:

function isEnvVariableOff(envVariableName: string): boolean

Parameters:

Parameter Type Description
envVariableName string The name of the environment variable to inspect.

Returns: boolean — true when the variable is set to an off value, otherwise false.


Links to this page: