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 26.1-26.3 Function Reference 26.1-26.3 All View Local Help Center View Online Help Center Version: