Home > @rushstack/node-core-library > EnvironmentMap
EnvironmentMap class
A map data structure that stores process environment variables. On Windows operating system, the variable names are case-insensitive.
Signature:
export declare class EnvironmentMap
Constructors
Constructor | Modifiers | Description |
|---|---|---|
Constructs a new instance of the |
Properties
Property | Modifiers | Type | Description |
|---|---|---|---|
| boolean | Whether the environment variable names are case-sensitive. |
Methods
Method | Modifiers | Description |
|---|---|---|
Clears all entries, resulting in an empty map. | ||
Returns the map entries. | ||
Returns the value of the specified variable, or | ||
Adds each entry from | ||
Merges entries from a plain JavaScript object, such as would be used with the | ||
Returns the map keys, which are environment variable names. | ||
Assigns the variable to the specified value. A previous value will be overwritten. | ||
Returns the keys as a plain JavaScript object similar to the object returned by the | ||
Removes the key from the map, if present. |