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 'obsidian-dev-utils/script-utils/env-toggle';

Signature:

function isEnvVariableOff(envVariableName: string): boolean

Parameters:

ParameterTypeDescription
envVariableNamestringThe name of the environment variable to inspect.

Returns: booleantrue when the variable is set to an off value, otherwise false.


Links to this page: