UtilsA.getEnv

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

UtilsA.getEnv(name);

Arguments

name. (string) Name of the environment variable.

Return value

A promise fulfilled with a string upon success.

Example

Copy code
UtilsA.getEnv("PATH").then(function(path){
  TCA.done(path);
}).catch(function (error) {
  TCA.doneWithError(error);
});