1.0.3 • Published 8 months ago

max-rcba v1.0.3

Weekly downloads
-
License
ISC
Repository
-
Last release
8 months ago

Role-Permission Package

npm version License Build Status

A role-based access control (RBAC) system for Node.js applications using MongoDB. This package helps manage users, roles, and permissions efficiently.

The role-permission package is a Role-Based Access Control (RBAC) system for Node.js applications using MongoDB. It allows developers to manage users, roles, and permissions efficiently. With this package, you can define permissions, assign them to roles, and associate roles with users. It includes a built-in authorization middleware to protect API routes based on assigned permissions. The package is lightweight, flexible, and easy to integrate into any Express.js or Node.js project. It supports multi-role users and dynamic permission checks for fine-grained access control. Using Mongoose, it ensures data is stored efficiently in MongoDB. The API is simple yet powerful, making it easy to implement secure role-based authentication. Ideal for SaaS applications, admin dashboards, and enterprise software.


🚀 Features

  • 🔒 Assign roles and permissions to users.
  • ✅ Middleware for role-based authorization.
  • 📌 Flexible and easy-to-use API.
  • 🔗 MongoDB integration.

📦 Installation

Using npm

npm install role-permission
1.0.3

8 months ago

1.0.2

8 months ago

1.0.1

8 months ago

1.0.0

9 months ago