Skip to main content

A JavaScript/TypeScript package providing common utilities and logic shared across all Temboplus-Afloat Projects

This package works with Node.js, DenoIt is unknown whether this package works with Cloudflare Workers, Bun, Browsers
It is unknown whether this package works with Cloudflare Workers
This package works with Node.js
This package works with Deno
It is unknown whether this package works with Bun
It is unknown whether this package works with Browsers
JSR Score
70%
Published
a week ago (0.1.29)
method AfloatAuth.prototype.checkPermission
AfloatAuth.prototype.checkPermission(perm: Permission): boolean

Checks if the current user has a specific permission.

Parameters

  • The permission to check

Return Type

True if the user has the permission, false otherwise

Add Package

deno add jsr:@temboplus/afloat

Import symbol

import { AfloatAuth } from "@temboplus/afloat";

---- OR ----

Import directly with a jsr specifier

import { AfloatAuth } from "jsr:@temboplus/afloat";

Add Package

npx jsr add @temboplus/afloat

Import symbol

import { AfloatAuth } from "@temboplus/afloat";

Add Package

yarn dlx jsr add @temboplus/afloat

Import symbol

import { AfloatAuth } from "@temboplus/afloat";

Add Package

pnpm dlx jsr add @temboplus/afloat

Import symbol

import { AfloatAuth } from "@temboplus/afloat";

Add Package

bunx jsr add @temboplus/afloat

Import symbol

import { AfloatAuth } from "@temboplus/afloat";