UNPKG

@compugit/react-rbac

Version:

A comprehensive Role-Based Access Control (RBAC) library for React applications with support for groups, roles, permissions, and protected components

79 lines (78 loc) 2.19 kB
{ "name": "@compugit/react-rbac", "version": "1.0.0", "description": "A comprehensive Role-Based Access Control (RBAC) library for React applications with support for groups, roles, permissions, and protected components", "main": "dist/index.js", "module": "dist/index.esm.js", "types": "dist/index.d.ts", "type": "module", "files": ["dist", "README.md", "LICENSE"], "scripts": { "build": "rollup -c", "build:watch": "rollup -c -w", "dev": "rollup -c -w", "test": "jest", "test:watch": "jest --watch", "lint": "eslint src --ext .ts,.tsx", "lint:fix": "eslint src --ext .ts,.tsx --fix", "type-check": "tsc --noEmit", "prepublishOnly": "npm run build", "prepare": "npm run build" }, "keywords": [ "react", "rbac", "role-based-access-control", "authorization", "permissions", "roles", "groups", "access-control", "security", "authentication", "typescript" ], "author": { "name": "Your Name", "email": "ad.compugit@gmail.com", "url": "https://compugit.github.io" }, "license": "MIT", "repository": { "type": "git", "url": "https://github.com/compugit/react-rbac.git" }, "bugs": { "url": "https://github.com/compugit/react-rbac/issues" }, "homepage": "https://github.com/compugit/react-rbac#readme", "peerDependencies": { "react": ">=16.8.0", "react-dom": ">=16.8.0" }, "devDependencies": { "@rollup/plugin-commonjs": "^25.0.7", "@rollup/plugin-node-resolve": "^15.2.3", "@rollup/plugin-typescript": "^11.1.5", "@types/jest": "^29.5.8", "@types/react": "^18.2.37", "@types/react-dom": "^18.2.15", "@typescript-eslint/eslint-plugin": "^6.12.0", "@typescript-eslint/parser": "^6.12.0", "eslint": "^8.54.0", "eslint-plugin-react": "^7.33.2", "eslint-plugin-react-hooks": "^4.6.0", "jest": "^29.7.0", "react": "^18.2.0", "react-dom": "^18.2.0", "rollup": "^4.5.0", "rollup-plugin-dts": "^6.1.0", "rollup-plugin-peer-deps-external": "^2.2.4", "ts-jest": "^29.1.1", "tslib": "^2.6.2", "typescript": "^5.2.2" }, "engines": { "node": ">=14.0.0" } }