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