Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/deno/cli/tsc/dts/lib.deno.ns.d.ts>Deno.EnvPermissionDescriptor

A modern runtime for JavaScript and TypeScript.
Go to Latest
interface Deno.EnvPermissionDescriptor
import { type Deno } from "https://deno.land/x/deno@v1.28.3/cli/tsc/dts/lib.deno.ns.d.ts";
const { EnvPermissionDescriptor } = Deno;

The permission descriptor for the allow-env permissions, which controls access to being able to read and write to the process environment variables as well as access other information about the environment. The option variable allows scoping the permission to a specific environment variable.

Properties

name: "env"
optional
variable: string

Optional environment variable name (e.g. PATH).