nx.js
NamespacesSwitchClasses

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

ParameterType
namestring

Returns

void


get()

get(name): undefined | string

Parameters

ParameterType
namestring

Returns

undefined | string


set()

set(name, value): void

Parameters

ParameterType
namestring
valuestring

Returns

void


toObject()

toObject(): Record<string, string>

Returns

Record<string, string>

On this page