UNPKG

fastify-healthcheck

Version:
88 lines (87 loc) 3.59 kB
{ "name": "fastify-healthcheck", "version": "5.1.0", "description": "Fastify Plugin to serve responses for health checks", "main": "src/plugin", "types": "types/index.d.ts", "scripts": { "audit:log": "npm audit > ./temp/audit.log", "clean:install": "rm -rf ./package-lock.json ./node_modules/", "dependency:log": "npm list > ./temp/dependencies.log", "docker:build:fail": "docker build -t fastify-healthcheck-example -f Dockerfile-fail.example .", "docker:build": "docker build -t fastify-healthcheck-example -f Dockerfile.example .", "docker:clean": "docker rmi fastify-healthcheck-example", "docker:healthcheck-manual": "docker exec -it fastify-healthcheck-example node src/healthcheck", "docker:inspect": "docker exec -it fastify-healthcheck-example bash", "docker:log": "docker logs --follow --tail=1000 fastify-healthcheck-example", "docker:process": "docker ps --filter name=fastify-healthcheck-example", "docker:run": "docker run --rm --name fastify-healthcheck-example -d -p 3000:3000 -t fastify-healthcheck-example", "docker:status": "docker inspect --format '{{ json .State.Health }}' fastify-healthcheck-example", "docker:stop": "docker kill fastify-healthcheck-example", "docs:clean": "rm -rf ./docs/*", "docs:generate": "npx jsdoc -c .jsdoc.json -R README.md", "docs": "npm run docs:clean && npm run docs:generate", "example-under-pressure-fail": "node example/example-under-pressure-fail", "example": "node example/example", "lint:fix": "standard --fix", "lint:standard": "standard --verbose", "lint:typescript": "standard --parser @typescript-eslint/parser --plugin @typescript-eslint/eslint-plugin test/*.ts", "lint:typescript:eslint": "eslint -c types/.eslintrc.json types/*.d.ts types/*.test-d.ts", "lint:typescript:eslint:fix": "eslint -c types/.eslintrc.json types/*.d.ts types/*.test-d.ts --fix", "lint": "npm run lint:standard && npm run lint:typescript", "start": "node src/healthcheck", "test:clean": "rm -rf .nyc_output/* .tap/* ./coverage/*", "test:coverage:all": "npm run test:unit -- --coverage-report=text", "test:coverage": "npm run test:unit -- --coverage-report=html", "test:types": "tsd", "test:unit:debug": "tap -T --node-arg=--inspect-brk", "test:unit:dev": "tap --watch --coverage-report=none", "test:unit": "tap --allow-incomplete-coverage", "test": "npm run lint:standard && npm run lint:typescript && npm run test:types && npm run test:unit" }, "dependencies": { "@fastify/under-pressure": "^9.0.1" }, "devDependencies": { "@types/node": "^22.9.0", "@typescript-eslint/eslint-plugin": "^8.13.0", "@typescript-eslint/parser": "^8.13.0", "fastify": "^5.0.0", "jsdoc": "^4.0.4", "simple-get": "^4.0.1", "standard": "^17.1.2", "tap": "^21.0.1", "tsd": "^0.31.2" }, "standard": { "ignore": [ "types/*" ] }, "tsd": { "directory": "types", "compilerOptions": { "esModuleInterop": true, "strict": true } }, "peerDependencies": {}, "engines": { "node": ">=20.9.0" }, "homepage": "https://github.com/smartiniOnGitHub/fastify-healthcheck#readme", "repository": { "type": "git", "url": "git+https://github.com/smartiniOnGitHub/fastify-healthcheck.git" }, "bugs": { "url": "https://github.com/smartiniOnGitHub/fastify-healthcheck/issues" }, "keywords": [ "fastify", "plugin", "healthcheck" ], "author": "Sandro Martini <sandro.martini@gmail.com>", "license": "Apache-2.0" }