rolr

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

Usage no npm install needed!

<script type="module">
  import rolr from 'https://cdn.skypack.dev/rolr';
</script>

README

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