Deno.Env.set - Deno documentation
method Deno.Env.set
allow-env
Env.set(
key: string,
value: string,
): void

Set the value of an environment variable.

Deno.env.set("SOME_VAR", "Value");
Deno.env.get("SOME_VAR");  // outputs "Value"

Requires allow-env permission.

Parameters

key: string
value: string

Return Type

void