parseEnvAssignment
parseEnvAssignment(
line,options?):EnvAssignment|null
Defined in: env/parse-env.ts:32
Parse one environment variable assignment.
A name with no = after it — env(1) and docker --env both accept one, to
mean “inherit this variable” — parses to an empty value.
Parameters
Section titled “Parameters”string
The assignment to parse.
options?
Section titled “options?”Options for parsing the assignment.
Returns
Section titled “Returns”EnvAssignment | null
The parsed assignment, or null when the line carries none: a blank
line or a comment in the syntaxes that have them.