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

std/permissions/mod.ts

The Deno Standard Library
Latest
The Standard Library has been moved to JSR. See the blog post for details.
Deprecated

Use the Deno Permissions API directly instead. This module will be removed once the Standard Library migrates to JSR.

import * as mod from "https://deno.land/std@0.224.0/permissions/mod.ts";

Helpers for interacting with Deno's permissions system.

Functions

f
grant
deprecated

Attempts to grant a set of permissions, resolving with the descriptors of the permissions that are granted.

f
grantOrThrow
deprecated

Attempts to grant a set of permissions or rejects.