UNPKG

next-path-matcher

Version:

A tiny utility to match Next.js request paths using glob patterns or regular expressions. Built for use with Next.js middleware and API routes.

43 lines (42 loc) 929 B
{ "name": "next-path-matcher", "description": "A tiny utility to match Next.js request paths using glob patterns or regular expressions. Built for use with Next.js middleware and API routes.", "version": "1.0.2", "type": "module", "main": "./dist/index.js", "types": "./dist/index.d.ts", "files": [ "dist" ], "keywords": [ "nextjs", "path-matcher", "path-to-regexp", "routing" ], "author": "Mattia Malonni", "repository": { "type": "git", "url": "https://github.com/mattiamalonni/next-path-matcher" }, "license": "MIT", "scripts": { "build": "tsup", "prepublishOnly": "npm run build" }, "dependencies": { "path-to-regexp": "^6.3.0" }, "devDependencies": { "next": "^15.4.4", "prettier": "^3.6.2", "tsup": "^8.5.0", "typescript": "^5.8.3" }, "peerDependencies": { "next": ">=15" }, "engines": { "node": ">=18.0.0" } }