UNPKG

fastify-allow

Version:

Fastify plugin that adds an Allow header with all registered methods to GET and HEAD responses. See https://datatracker.ietf.org/doc/html/rfc7231#section-7.4.1

40 lines (39 loc) 1.02 kB
{ "name": "fastify-allow", "version": "2.0.0", "description": "Fastify plugin that adds an Allow header with all registered methods to GET and HEAD responses. See https://datatracker.ietf.org/doc/html/rfc7231#section-7.4.1", "main": "lib/index.js", "types": "lib/index.d.ts", "scripts": { "build": "tsc -p tsconfig.json", "test": "ts-node test/test.ts" }, "repository": { "type": "git", "url": "git+https://github.com/mattbishop/fastify-allow.git" }, "keywords": [ "fastify", "fastify-plugin", "fastify-allow", "allow", "header", "405" ], "author": "matt@thebishops.org", "license": "MIT", "bugs": { "url": "https://github.com/mattbishop/fastify-allow/issues" }, "homepage": "https://github.com/mattbishop/fastify-allow#readme", "dependencies": { "fastify-plugin": "^4.5.1" }, "devDependencies": { "@types/tape": "^5.6.3", "fastify": "^4.23.2", "tape": "^5.7.2", "ts-node": "^10.9.1", "typescript": "^5.2.2" } }