🏁Introduction

❀️ This library is developed and maintained by MonOrdo ❀️

triangle-exclamation

This library is developed to use the Bit fieldarrow-up-right method as the main logic base within our permission system. We did not invent this method, nor its application to the permission system, but after having been inspired by discord, for example. We chose to simplify its use by creating a library to apply it more simply. This library supports injectionarrow-up-right within a module and can therefore be injected, for example, within the services of a NestJsarrow-up-right server. This library also exposes a Guard to simplify its use within NestJsarrow-up-right.

The bit field method allows building a permission system like Discordarrow-up-right uses for its channels. The main advantage is to avoid heavy data transfers on the whole proposed solution. For its use, the storage of a big int is enough. The second advantage is its reliability for the check of permissions, no storage of permissions is necessary except the storage of the big int, so only its interpretation can differ in time and not name migrations as can be found on classical methods.

Repository: https://github.com/monordo/bitfield-permission-managerarrow-up-right

Official documentation: https://monordo.gitbook.io/bitfield-permission-manager/arrow-up-right

NPM details: https://www.npmjs.com/package/@monordo/bitfield-permission-managerarrow-up-right

Last updated