@eturino/claims

Claims (typescript)

Build Status npm version codebeat badge Maintainability Test Coverage

TypeDoc generated docs in here

Github repo here

Library to encapsulate Claims ("verb:resource") as well as ClaimSet (set of Claims) and Ability (permitted ClaimSet + prohibited ClaimSet).

TBD

(TypeScript port of https://github.com/eturino/claims)

Library bootstrapped using typescript-starter.

Installation

yarn add @eturino/claims or npm install @eturino/claims.

Usage

Allowed verbs: "admin", "read", "delete", "create", "update", "manage".

see the type docs for now

instantiating the object using the buildClaim(), buildClaimSet() and buildAbility() functions is recommended

Collaborators

Generated using TypeDoc