Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

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

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

The permission descriptor for the allow-read permissions, which controls access to reading resources from the local host. The option path allows scoping the permission to a specific path (and if the path is a directory any sub paths).

Permission granted under allow-read only allows runtime code to attempt to read, the underlying operating system may apply additional permissions.

Properties

name: "read"
optional
path: string | URL

The allow-read permission can be scoped to a specific path (and if the path is a directory, any sub paths).