Share this page

# Utils.getEnv

Returns the value of the specified environment variable. Returns an empty string if the specified variable does not exist.

    Utils.getEnv(name);

## Arguments

name. (string) Name of the environment variable.

## Return value

A promise fulfilled with a string upon success.

## Example

Copy code

    (async ()=>{
        let env = await Utils.getEnv("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: