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");
})();