Share this page

# Utils.isEnvExists

Checks the existence of a specified environment variable.

    Utils.isEnvExists(name);

## Arguments

name. (string) Name of the environment variable.

## Return value

A promise that is fulfilled with a boolean upon success.

Returns true if the specified environment variable exists, and false if it does not exist.

## Example

Copy code

    (async ()=>{
        let exist = await Utils.isEnvExists("PATH");
    })();

Tips to improve your search results... VuGen Function Reference Version 25.1-25.3 Function Reference 25.1-25.3 All View Local Help Center View Online Help Center Version: