UNPKG

next-server-middleware

Version:

A simple type-safe express-like middleware for Next.js api routes using app directory and next/server

45 lines (44 loc) 1.23 kB
{ "name": "next-server-middleware", "version": "1.3.2", "description": "A simple type-safe express-like middleware for Next.js api routes using app directory and next/server", "main": "dist/index.js", "types": "dist/index.d.ts", "repository": { "type": "git", "url": "https://github.com/antonmihaylov/next-server-middleware" }, "type": "module", "bugs": { "url": "https://github.com/antonmihaylov/next-server-middleware/issues" }, "keywords": [ "next.js", "middleware", "api-routes" ], "readme": "README.md", "homepage": "https://github.com/antonmihaylov/next-server-middleware", "scripts": { "build": "tsc", "prepublish": "npm run build" }, "peerDependencies": { "next": ">=13" }, "devDependencies": { "eslint": "^8.39.0", "next": "^13.3.2", "prettier": "^2.8.8", "typescript": "^5.0.4", "@typescript-eslint/eslint-plugin": "5.48.2", "@typescript-eslint/parser": "5.48.2", "eslint-config-antomic": "2.1.0", "eslint-config-prettier": "8.6.0", "eslint-plugin-import": "2.27.5", "eslint-plugin-promise": "6.1.1", "eslint-plugin-unused-imports": "2.0.0" }, "author": "anton@antomic.net", "license": "MIT" }