trending

7d ago

ds-express-errors v1.7.0 – express-validator support

Released v1.7.0 of ds-express-errors.

What s new:

  • Added express-validator error mapping

  • Improved Mongoose and Prisma error checks

  • Safer setConfig validation

  • Logger bug fix and internal refactoring

9d ago

ds-express-errors - Predictable, centralized error handling for Express.js APIs

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