casbin
Version:
An authorization library that supports access control models like ACL, RBAC, ABAC in Node.JS
73 lines (72 loc) • 1.59 kB
JSON
{
"name": "casbin",
"version": "2.0.1",
"description": "An authorization library that supports access control models like ACL, RBAC, ABAC in Node.JS",
"main": "lib/index.js",
"typings": "lib/index.d.ts",
"scripts": {
"precommit": "lint-staged",
"prepublish": "yarn run lint && yarn run test && yarn build",
"build": "rimraf lib && tsc",
"lint": "tslint \"src/**/*.ts\"",
"fix": "tslint \"src/**/*.ts\" --fix",
"test": "jest"
},
"devDependencies": {
"@types/ip": "^0.0.31",
"@types/jest": "^23.3.1",
"@types/lodash": "^4.14.113",
"@types/node": "^10.5.3",
"coveralls": "^3.0.2",
"husky": "^0.14.3",
"jest": "^23.4.2",
"lint-staged": "^7.2.0",
"rimraf": "^2.6.2",
"ts-jest": "22.4.6",
"tslint": "^5.11.0",
"typescript": "^3.3.3"
},
"dependencies": {
"expression-eval": "^1.3.0",
"ip": "^1.1.5",
"lodash": "^4.17.10"
},
"files": [
"lib",
"examples"
],
"homepage": "http://casbin.org",
"repository": {
"type": "git",
"url": "https://github.com/casbin/node-casbin.git"
},
"licenses": [
{
"type": "Apache-2.0",
"url": "http://www.apache.org/licenses/LICENSE-2.0"
}
],
"lint-staged": {
"*.{ts,js}": [
"tslint --fix",
"git add"
]
},
"jest": {
"testURL": "http://localhost",
"transform": {
"^.+\\.(ts|tsx)$": "ts-jest"
},
"testMatch": [
"**/test/*.+(ts|tsx)"
],
"moduleFileExtensions": [
"ts",
"tsx",
"js",
"jsx",
"json",
"node"
]
}
}