grom-utils
A utility package for Express.js applications offering simplified async handling, error responses, validation, rate limiting, and logging.
Features
- Async Handler: Wrap async functions to catch errors.
- Error Checker: Throw custom API errors with ease.
- API Responses: Standard and paginated API responses.
- Input Validation: Schema-based input validation.
- Rate Limiting: Simple middleware to limit requests per IP.
- Logging: Colorful, timestamped logs.
Functions
grAsyncHandler
grCheck
grResponse
grValidate
grRateLimit
grLogger
Installation
npm install grom-utils