Skip to main content
Permissions - Deno documentation

Classes

c
Deno.PermissionStatus

An EventTarget returned from the Deno.permissionsAPI which can provide updates to any state changes of the permission.

Interfaces

I
Deno.EnvPermissionDescriptor

The permission descriptor for the allow-env and deny-env permissions, which controlsaccess to being able to read and write to the process environment variablesas well as access other information about the environment. The optionvariable allows scoping the permission to a specific environmentvariable.

I
Deno.FfiPermissionDescriptor

The permission descriptor for the allow-ffi and deny-ffi permissions, which controlsaccess to loading foreign code and interfacing with it via theForeign Function Interface APIavailable in Deno. The option path allows scoping the permission to aspecific path on the host.

I
Deno.NetPermissionDescriptor

The permission descriptor for the allow-net and deny-net permissions, which controlsaccess to opening network ports and connecting to remote hosts via thenetwork. The option host allows scoping the permission for outboundconnection to a specific host and port.

I
Deno.PermissionOptionsObject

A set of options which can define the permissions within a test or workercontext at a highly specific level.

I
Deno.PermissionStatusEventMap

The interface which defines what event types are supported byPermissionStatus instances.

I
Deno.ReadPermissionDescriptor

The permission descriptor for the allow-read and deny-read permissions, which controlsaccess to reading resources from the local host. The option path allowsscoping the permission to a specific path (and if the path is a directoryany sub paths).

I
Deno.RunPermissionDescriptor

The permission descriptor for the allow-run and deny-run permissions, which controlsaccess to what sub-processes can be executed by Deno. The option commandallows scoping the permission to a specific executable.

I
Deno.SysPermissionDescriptor

The permission descriptor for the allow-sys and deny-sys permissions, which controlsaccess to sensitive host system information, which malicious code mightattempt to exploit. The option kind allows scoping the permission to aspecific piece of information.

I
Deno.WritePermissionDescriptor

The permission descriptor for the allow-write and deny-write permissions, whichcontrols access to writing to resources from the local host. The optionpath allow scoping the permission to a specific path (and if the path isa directory any sub paths).

Type Aliases

T
Deno.PermissionDescriptor

Permission descriptors which define a permission and can be queried,requested, or revoked.

T
Deno.PermissionName

The name of a privileged feature which needs permission.

T
Deno.PermissionOptions

Options which define the permissions within a test or worker context.

T
Deno.PermissionState

The current status of the permission:

Variables

v
Deno.permissions

Deno's permission management API.