Home > @rushstack/node-core-library > EnvironmentMap > set
EnvironmentMap.set() method
Assigns the variable to the specified value. A previous value will be overwritten.
Signature:
set(name: string, value: string): void;
Parameters
Parameter | Type | Description |
---|---|---|
name | string | |
value | string |
Returns:
void
Remarks
The value can be an empty string. To completely remove the entry, use EnvironmentMap.unset() instead.