UNPKG

allow-methods

Version:

Express/connect middleware to handle 405 errors

55 lines (54 loc) 1.48 kB
{ "name": "allow-methods", "version": "7.1.0", "description": "Express/connect middleware to handle 405 errors", "keywords": [ "405", "connect", "error", "express", "http", "middleware" ], "author": "Rowan Manning (https://rowanmanning.com/)", "repository": { "type": "git", "url": "https://github.com/rowanmanning/allow-methods.git" }, "homepage": "https://github.com/rowanmanning/allow-methods", "bugs": "https://github.com/rowanmanning/allow-methods/issues", "license": "MIT", "engines": { "node": "20.x || 22.x || 24.x" }, "scripts": { "verify": "npm run verify:biome && npm run verify:types", "verify:biome": "biome check", "verify:types": "tsc --project ./jsconfig.json", "test": "npm run test:coverage && npm run test:integration", "test:unit": "cd test/unit && node --test", "test:coverage": "nyc npm run test:unit", "test:integration": "cd test/integration && node --test", "prepare": "husky || true" }, "devDependencies": { "@commitlint/cli": "^19.3.0", "@commitlint/config-conventional": "^19.2.2", "@rowanmanning/biome-config": "^2.0.0", "@types/express": "^5.0.0", "express4": "npm:express@^4.21.0", "express5": "npm:express@^5.0.0", "husky": "^9.0.7", "nyc": "^17.0.0", "typescript": "^5.5.2" }, "main": "index.js", "types": "index.d.ts", "nyc": { "eager": true, "reporter": [ "html", "text" ] } }