rolr
TypeScript icon, indicating that this package has built-in type declarations

0.1.3 • Public • Published

rolr

Rolr is a JavaScript library for managing user roles which restricts what resources a given user is allowed to access

npm-version npm-download

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

/rolr/

    Package Sidebar

    Install

    npm i rolr

    Weekly Downloads

    2

    Version

    0.1.3

    License

    MIT

    Unpacked Size

    27.3 kB

    Total Files

    13

    Last publish

    Collaborators

    • andrewalex