process.envs

process.envs

process.envs

Function

Set child process environment variables in batches.

Syntax

Parameters

ParametersTypeRequiredDefault valueDescription
valuesObjectNoNoneEnvironment variable mapping object; rules for keys and values are given below.

values object structure

keyvalue typedescription
Environment variable nameAnyThe value to be written to the subprocess environment variable; it will be converted to a string when called.

Return value

TypeDescription
ProcessReturns the new process builder.

Example

Notes

  • The object value will be converted to a string first.