Cloud API Overview > @adpt/cloud > lookupEnvVar
lookupEnvVar() function
Find the value of an environment variable in an Environment
Signature:
export declare function lookupEnvVar(e: Environment, name: string): string | undefined;
Parameters
Parameter | Type | Description |
---|---|---|
e | Environment | Environment to search |
name | string | variable to search for |
Returns:
string | undefined
the value of the variable name in e, or undefined if not found