Skip to content

printEnvAssignment

printEnvAssignment(name, value, options?): string

Defined in: env/print-env.ts:115

Print one environment variable assignment in the given syntax, quoting the value as that syntax requires so that parseEnvAssignment reads back exactly the value given.

string

The environment variable name.

EnvValue

The environment variable value.

PrintEnvAssignmentOptions

Options for printing the assignment.

string

The printed assignment.

If the name contains =, NUL or a line break, or if the value has no representation in the requested syntax.