UNPKG

express-error-toolkit

Version:

A lightweight and developer-friendly toolkit for robust error handling in Express.js applications. Includes ready-to-use custom error classes, an async route error handler wrapper, a global error handler middleware, and a convenient 'not found' route hand

64 lines (63 loc) 1.88 kB
{ "name": "express-error-toolkit", "version": "1.1.2", "description": "A lightweight and developer-friendly toolkit for robust error handling in Express.js applications.\nIncludes ready-to-use custom error classes, an async route error handler wrapper, a global error handler middleware, and a convenient 'not found' route handler.\nDesigned to simplify error management, reduce boilerplate, and improve app reliability — all with TypeScript support and easy integration.", "author": "Rashedin Islam <rashedinislam.06@gmail.com>", "license": "MIT", "engines": { "node": ">=14" }, "repository": { "type": "git", "url": "https://github.com/dev-rashedin/express-error-toolkit.git" }, "homepage": "https://github.com/dev-rashedin/express-error-toolkit#readme", "type": "module", "main": "dist/index.cjs", "module": "dist/index.js", "types": "./dist/index.d.ts", "exports": { ".": { "import": "./dist/index.js", "require": "./dist/index.cjs" } }, "files": [ "dist", "README.md", "LICENSE" ], "sideEffects": false, "scripts": { "build": "tsup src/index.ts --format cjs,esm --dts --out-dir dist", "prepare": "npm run build", "start": "node dist/index.js", "dev": "ts-node src/index.ts", "test": "jest", "check": "npm run build && npm run test", "example": "tsx example/index.ts" }, "keywords": [ "express", "error-handling", "middleware", "typescript", "async-handler", "custom-errors" ], "dependencies": { "http-status-toolkit": "^1.0.3" }, "devDependencies": { "@types/express": "^5.0.3", "@types/jest": "^30.0.0", "@types/supertest": "^6.0.3", "express": "^5.1.0", "jest": "^30.0.4", "supertest": "^7.1.1", "ts-jest": "^29.4.0", "tsup": "^8.5.0", "tsx": "^4.20.3", "typescript": "^5.8.3" } }