fhpriamo / hie

hie allows you to effortlessly check for user permissions across a graph of roles/permissions of arbitrary complexity.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool


@soufantech/hie

hie allows you to build role hierarchies of any complexity and easily check user permissions across them.


typescript-image jest-image npm-image

Installing

with yarn

yarn add @soufantech/hie

or npm

npm install @soufantech/hie

Todo:

  • docs: add usage examples;
  • chore: add and configure semantic-release;
  • refactor: refactor authorities to their own folder;
    • move RoleAuthority interface from role-matcher.ts;
  • test: remove use of getMapping function in HierarchicalRoleAuthority tests;
  • refactor: remove getMapping function;
  • feat: define role hierarchy as string (more or less like Spring Boot does);

Built with ❤︎ by SouFan

About

hie allows you to effortlessly check for user permissions across a graph of roles/permissions of arbitrary complexity.

License:MIT License


Languages

Language:TypeScript 99.1%Language:JavaScript 0.9%