UNPKG

handle-http-errors

Version:

Type-safe HTTP error handling package providing error classes, standardized responses, error handler, and built-in Express middleware support.

71 lines (70 loc) 1.92 kB
{ "name": "handle-http-errors", "version": "1.0.1", "description": "Type-safe HTTP error handling package providing error classes, standardized responses, error handler, and built-in Express middleware support.", "author": "Junjie Wu", "license": "MIT", "type": "module", "main": "dist/index.js", "types": "dist/index.d.ts", "files": [ "dist", "README.md" ], "repository": { "type": "git", "url": "git+https://github.com/junjie-w/handle-http-errors.git" }, "homepage": "https://github.com/junjie-w/handle-http-errors#readme", "bugs": { "url": "https://github.com/junjie-w/handle-http-errors/issues" }, "publishConfig": { "access": "public" }, "scripts": { "prebuild": "rm -rf dist", "build": "tsc", "build:watch": "tsc -w", "test": "jest", "test:watch": "jest --watch", "test:coverage": "jest --coverage", "lint": "eslint .", "lint:fix": "eslint . --fix", "prepublishOnly": "npm run build", "prepare": "husky install" }, "keywords": [ "error-handling", "http-errors", "http-error-handler", "middleware", "typescript", "node", "express", "error-response" ], "dependencies": { "http-status-codes": "^2.3.0" }, "devDependencies": { "@commitlint/cli": "^19.6.1", "@commitlint/config-conventional": "^19.6.0", "@semantic-release/changelog": "^6.0.3", "@semantic-release/git": "^10.0.1", "@semantic-release/release-notes-generator": "^14.0.2", "@types/express": "^5.0.0", "@types/jest": "^29.5.14", "@types/node": "^22.10.2", "@typescript-eslint/eslint-plugin": "^8.18.1", "@typescript-eslint/parser": "^8.18.0", "eslint": "^9.17.0", "express": "^4.21.2", "husky": "^9.1.7", "jest": "^29.7.0", "lint-staged": "^15.2.10", "semantic-release": "^24.2.0", "ts-jest": "^29.2.5", "typescript": "^5.7.2" } }