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.SysPermissionDescriptor

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

The permission descriptor for the allow-sys permissions, which controls access to sensitive host system information, which malicious code might attempt to exploit. The option kind allows scoping the permission to a specific piece of information.

Properties

name: "sys"
optional
kind:
| "loadavg"
| "hostname"
| "systemMemoryInfo"
| "networkInterfaces"
| "osRelease"
| "uid"
| "gid"

The specific information to scope the permission to.