ds-express-errors
Predictable, centralized error handling for Express.js APIs
3 followers
Predictable, centralized error handling for Express.js APIs
3 followers
ds-express-errors provides a single, predictable error-handling strategy for Express.js APIs, replacing scattered try/catch blocks and inconsistent responses. It automatically maps errors from tools like Zod, Prisma, Mongoose, and JWT into proper HTTP errors with consistent JSON output. Everything is fully configurable — response shape, logging, environments, and custom error mapping. Built for production with async handling, process-level guards, graceful shutdowns, and full TypeScript support
