Skip to main content
The Deno 2 Release Candidate is 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.40.5/cli/tsc/dts/lib.deno.ns.d.ts";
const { EnvPermissionDescriptor } = Deno;

The permission descriptor for the allow-env and deny-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).