Skip to main content

latest
Works with
It is unknown whether this package works with Browsers, Deno, Node.js, Cloudflare Workers, Bun
It is unknown whether this package works with Browsers
It is unknown whether this package works with Deno
It is unknown whether this package works with Node.js
It is unknown whether this package works with Cloudflare Workers
It is unknown whether this package works with Bun
JSR Score70%
Published2 years ago (0.215.0)
default
Deprecated

(will be removed in 1.0.0) Use the Deno Permissions API directly instead.

Helpers for interacting with Deno's permissions system.

Functions

f
grant(
descriptor: Deno.PermissionDescriptor[] | Deno.PermissionDescriptor,
...descriptors: Deno.PermissionDescriptor[]
): Promise<void | Deno.PermissionDescriptor[]>
2 overloads

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

f
grantOrThrow(
descriptor: Deno.PermissionDescriptor[] | Deno.PermissionDescriptor,
...descriptors: Deno.PermissionDescriptor[]
): Promise<void>
2 overloads

Attempts to grant a set of permissions or rejects.

Report package

Please provide a reason for reporting this package. We will review your report and take appropriate action.

Please review the JSR usage policy before submitting a report.

Add Package

deno add jsr:@std/permissions

Import symbol

import * as permissions from "@std/permissions";
or

Import directly with a jsr specifier

import * as permissions from "jsr:@std/permissions";