RoadmapShopEvents
Skip to main content

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

ParameterTypeDescription
namestring
valuestring

Returns:

void

Remarks

The value can be an empty string. To completely remove the entry, use EnvironmentMap.unset() instead.