🚧Setup

To use this library, you can choose between two methods. If your project supports NestJs injection, you can choose to inject the client or simply use it via a classic import in a project without injection.

With NestJs injection

In the desired module, you must import BitfieldManagerModule .

for example : app.module.ts
import { BitfieldManagerModule } from '@monordo/bitfield-permission-manager';

@Module({
    imports: [BitfieldManagerModule]
})
export class AppModule {}

Now you can use BitfieldProvider in all desired module class

Without NestJs injection

import { vidalClient } from '@monordo/bitfield-permission-manager';

(async () => {
    const manager = await bitfieldPermissionManager();
})();

Last updated