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

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

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

The permission descriptor for the allow-run permission, which controls access to what sub-processes can be executed by Deno. The option command allows scoping the permission to a specific executable.

Warning, in practice, allow-run is effectively the same as allow-all in the sense that malicious code could execute any arbitrary code on the host.

Properties

name: "run"
optional
command: string | URL

The allow-run permission can be scoped to a specific executable, which would be relative to the start-up CWD of the Deno CLI.