http-error-kit
Version:
A flexible and customizable error-handling library for HTTP applications. Provides structured error responses with optional formatters, predefined HTTP errors, and extensible error types.
95 lines (94 loc) • 2.81 kB
JSON
{
"name": "http-error-kit",
"version": "1.1.0",
"description": "A flexible and customizable error-handling library for HTTP applications. Provides structured error responses with optional formatters, predefined HTTP errors, and extensible error types.",
"main": "dist/index.js",
"types": "dist/index.d.ts",
"exports": {
".": "./dist/index.js",
"./generic": "./dist/general.error.js",
"./http": "./dist/http.error.js"
},
"typesVersions": {
"*": {
"generic": [
"./dist/general.error.d.ts"
],
"http": [
"./dist/http.error.d.ts"
]
}
},
"scripts": {
"test": "jest --config jest.config.ts",
"build": "tsc --build",
"coverage": "jest --coverage --config jest.config.ts"
},
"repository": {
"type": "git",
"url": "git+https://github.com/Skillnter/http-error-kit.git"
},
"keywords": [
"http",
"error",
"kit",
"http-errors",
"custom-errors",
"error-handling",
"skillnter"
],
"author": "Himanshu Bansal <skillhimanshubansal@gmail.com>",
"license": "MIT",
"bugs": {
"url": "https://github.com/Skillnter/http-error-kit/issues"
},
"homepage": "https://github.com/Skillnter/http-error-kit#readme",
"dependencies": {
"http-response-status-code": "1.7.5"
},
"devDependencies": {
"@types/jest": "^29.5.14",
"@types/node": "^22.13.4",
"@typescript-eslint/eslint-plugin": "^8.22.0",
"eslint-plugin-security": "^3.0.1",
"jest": "^29.7.0",
"ts-jest": "^29.2.5",
"ts-node": "^10.9.2",
"tslib": "^2.8.1",
"typescript": "^5.7.3"
},
"publishConfig": {
"@skillnter:registry": "https://npm.pkg.github.com/"
},
"files": [
"dist/index.js",
"dist/index.d.ts",
"dist/general.error.js",
"dist/general.error.d.ts",
"dist/http.error.js",
"dist/http.error.d.ts",
"LICENSE"
],
"funding": [
{
"type": "github",
"url": "https://github.com/sponsors/Skillnter"
},
{
"type": "patreon",
"url": "https://www.patreon.com/skillnter"
},
{
"type": "open_collective",
"url": "https://opencollective.com/http-error-kit"
},
{
"type": "buy_me_a_coffee",
"url": "https://buymeacoffee.com/skillnter"
},
{
"type": "paypal",
"url": "https://www.paypal.com/paypalme/skillnte"
}
]
}