@community/gandalf-gate (1.0.0)

Published 2026-08-07 15:02:13 +00:00 by gandalf

Installation

@community:registry=
npm install @community/gandalf-gate@1.0.0
"@community/gandalf-gate": "1.0.0"

About this package

gandalf-gate 🧙

A tiny guard utility.

const { youShallNotPass, gatekeeper } = require('@community/gandalf-gate');
youShallNotPass(user.isAdmin, 'admins only');
const gate = gatekeeper(3); // allow 3, then throws
Details
npm
2026-08-07 15:02:13 +00:00
1
MIT
latest
711 B
Assets (1)
Versions (1) View all
1.0.0 2026-08-07