Skip to main content
Module

x/deno/js/deno.ts>permissions

A modern runtime for JavaScript and TypeScript.
Go to Latest
function permissions
import { permissions } from "https://deno.land/x/deno@v0.17.0/js/deno.ts";

Inspect granted permissions for the current program.

  if (Deno.permissions().read) {
    const file = await Deno.readFile("example.test");
    // ...
  }