UNPKG

route-blocker

Version:

A middleware for expressjs to block or unblock a route

70 lines 1.83 kB
{ "name": "route-blocker", "version": "1.2.1", "description": "A middleware for expressjs to block or unblock a route", "author": "Ehtesham Hasnain", "license": "MIT", "bugs": { "url": "https://github.com/ehasnain/route-blocker/issues" }, "homepage": "https://github.com/ehasnain/route-blocker#readme", "main": "lib/index.js", "typings": "lib/index.d.ts", "files": [ "lib/**" ], "publishConfig": { "access": "public", "branches": [ "master" ] }, "repository": { "type": "git", "url": "git+ssh://git@github.com/ehasnain/route-blocker.git" }, "keywords": [ "expressjs", "route-blocker", "route", "block", "unblock" ], "scripts": { "build": "./scripts/build.sh", "clean": "./scripts/clean.sh lib", "lint": "./scripts/lint.sh", "prepublishOnly": "yarn && yarn build", "start": "./scripts/start-example.sh", "start-watch": "./scripts/start-example-watch.sh", "test": "yarn test-unit && yarn test-int", "test-watch": "./scripts/test-watch.sh", "test-int": "./scripts/test-int.sh", "test-int-watch": "./scripts/test-int-watch.sh", "test-unit": "./scripts/test-unit.sh", "test-unit-watch": "./scripts/test-unit-watch.sh" }, "peerDependencies": { "express": "^4.17.1" }, "devDependencies": { "@types/chai": "^4.2.0", "@types/express": "^4.17.1", "@types/mocha": "^8.0.3", "@types/node": "^14.11.2", "@typescript-eslint/eslint-plugin": "^4.2.0", "@typescript-eslint/parser": "^4.2.0", "chai": "^4.2.0", "chai-http": "^4.3.0", "eslint": "^7.10.0", "eslint-plugin-import": "^2.22.0", "express": "^4.17.1", "mocha": "^8.1.3", "nodemon": "^2.0.4", "ts-node": "^9.0.0", "typescript": "^4.0.3" }, "engines": { "node": ">=6" } }