@tradecrush/next-route-guard
Version:
Convention-based route authentication middleware for Next.js applications
66 lines (65 loc) • 1.64 kB
JSON
{
"name": "@tradecrush/next-route-guard",
"version": "0.2.4",
"private": false,
"description": "Convention-based route authentication middleware for Next.js applications",
"main": "./dist/index.js",
"module": "./dist/index.mjs",
"types": "./dist/index.d.ts",
"scripts": {
"build": "tsup",
"dev": "tsup --watch",
"lint": "eslint src --fix",
"check-types": "tsc --noEmit",
"test": "vitest run",
"test:unit": "vitest run tests/unit",
"test:compatibility": "node tests/compatibility/test-compatibility.js",
"test:all": "node tests/run-all-tests.js",
"prepublishOnly": "npm run build"
},
"keywords": [
"next.js",
"authentication",
"middleware",
"route",
"guard",
"protection",
"app-router",
"directory-based",
"convention"
],
"license": "MIT",
"homepage": "https://www.tradecrush.io",
"repository": {
"type": "git",
"url": "git+https://github.com/tradecrush/next-route-guard.git"
},
"dependencies": {
"chokidar": "^3.5.3",
"debug": "^4.3.4"
},
"devDependencies": {
"@tradecrush/eslint-config": "^0.1.0",
"@tradecrush/typescript-config": "^0.1.0",
"@types/debug": "^4.1.12",
"@types/node": "^20",
"eslint": "^9.19.0",
"next": "^15.1.6",
"prettier": "^3.5.2",
"tsup": "^8.4.0",
"typescript": "^5.7.3",
"vitest": "^3.0.7"
},
"peerDependencies": {
"next": ">=13.4.0"
},
"files": [
"dist/**",
"scripts/**",
"README.md"
],
"bin": {
"next-route-guard-generate": "scripts/generate-routes.js",
"next-route-guard-watch": "scripts/watch-routes.js"
}
}