Env
A Map-like object providing methods to interact with the environment variables of the process.
Use Switch.env to access the singleton instance of this class.
Methods
delete()
delete(name): void
Parameters
| Parameter | Type |
|---|---|
name | string |
Returns
void
get()
get(name): undefined | string
Parameters
| Parameter | Type |
|---|---|
name | string |
Returns
undefined | string
set()
set(name, value): void
Parameters
| Parameter | Type |
|---|---|
name | string |
value | string |
Returns
void
toObject()
toObject(): Record<string, string>
Returns
Record<string, string>