rolr
v0.1.3
Published
Rolr is a JavaScript library for managing user roles which restricts what resources a given user is allowed to access
Downloads
25
Readme
rolr
Rolr is a JavaScript library for managing user roles which restricts what resources a given user is allowed to access
Usage
import Rolr from 'rolr'
const roles = new Rolr(['admin', 'staff'])
roles.has('admin') // true
roles.has('editor') // false
License
This is free and unencumbered software released into the public domain. See LICENSE