ACLer
Minimalistic ACL implementation for privileges management in JS
Installation
$ npm i acler --save
or
$ yarn add acler
Usage
// using ES modules// using CommonJS modulesconst check = const user = { return 'moderator' } const can = if !can throw 'You not allowed to this resource.'
Syntax
and (&&)
- administrator && moderator
or (||)
- administrator || moderator
not (!)
- administrator && !moderator
Credits
Support
Having trouble? Open an issue!
License
The MIT License (MIT). Please see License File for more information.