core/env
Documentation
- source: core/env.ts
Overview
Classes
Env
get()
Retrieves the value of the environment variable with the specified name.
tsstatic get(name: string): string;
Parameter Type Description namestringThe name of the environment variable. Returns
- Type:
string- Description: The variable's value as a string, or `undefined` if the variable is not set.
list()
Retrieves a map of all environment variables currently exposed to the application.
tsstatic list(): EnvValues;Returns
- Type:
EnvValues- Description: An EnvValues object containing all environment variables as key-value pairs.
