UNPKG

@dnlup/fastify-traps

Version:

A Fastify plugin to close the server gracefully on SIGINT and SIGTERM signals

65 lines (64 loc) 1.76 kB
{ "name": "@dnlup/fastify-traps", "version": "3.1.0", "description": "A Fastify plugin to close the server gracefully on SIGINT and SIGTERM signals", "main": "index.js", "type": "commonjs", "types": "index.d.ts", "scripts": { "doc": "markdown-toc -i README.md", "lint": "standard --fix | snazzy", "test": "tap test/**.test.js", "test:ci": "npm run test -- --cov --coverage-report=lcovonly", "test:coverage": "npm test -- --coverage-report=html", "prerelease": "npm cit", "release": "HUSKY=0 standard-version --sign", "postrelease": "npm run push && npm publish", "prenext": "npm cit", "next": "HUSKY=0 standard-version --sign --prerelease", "postnext": "npm run push && npm publish --tag next", "push": "git push origin --follow-tags `git rev-parse --abbrev-ref HEAD`", "prepare": "husky install" }, "repository": { "type": "git", "url": "git+https://github.com/dnlup/fastify-traps.git" }, "files": [ "index.js", "index.d.ts" ], "keywords": [ "fastify", "close", "graceful", "gracefully", "SIGINT", "SIGTERM" ], "author": "dnlup <dnlup.dev@gmail.com>", "license": "ISC", "publishConfig": { "access": "public" }, "bugs": { "url": "https://github.com/dnlup/fastify-traps/issues" }, "homepage": "https://github.com/dnlup/fastify-traps#readme", "devDependencies": { "@types/node": "^22.10.1", "fastify": "^5.1.0", "husky": "^8.0.3", "lint-staged": "^15.2.0", "markdown-toc": "^1.2.0", "snazzy": "^9.0.0", "standard": "^17.0.0", "standard-version": "^9.2.0", "tap": "^16.0.0", "tsd": "^0.30.3", "typescript": "^5.0.4" }, "dependencies": { "fastify-plugin": "^5.0.1" } }