express-strategy
v1.0.5
Published
It makes life easy
Readme
express-strategy
A lightweight utility package to simplify error handling, API responses, and global error management in Express.js applications.
🚀 Features:
- ✅
asyncHandler: Streamline async/await error handling in Express routes. - ✅
ApiResponse: Standardized API response format. - ✅
ApiError: Custom error class for structured error handling. - ✅
globalErrorHandler: Centralized Express error handler. - ✅ 🏗️ (Future Feature): Image handling utilities (Coming Soon...)
📦 Installation
Install the package using npm or yarn:
# Using npm
npm install express-strategy
# Using yarn
yarn add express-strategy
<<<<<<< HEAD
=======
---
>>>>>>> cd35ff839299166d1fcde6e0bd2df5bce3c5e1e4You can use it as follows.
--
