Skip to content

printEnv

printEnv(variables, options?): string

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

Print a whole set of environment variables as a document, one assignment per line, terminated by a trailing line separator.

Readonly<EnvVariables>

The environment variables to print, keyed by name.

PrintEnvOptions

Options for printing the document.

string

The printed document, empty when there is no variable to print.

If a name or a value has no representation in the requested syntax.