2.1.0 • Published 3 months ago
@rosmarinus/nest-core v2.1.0
@rosmarinus/nest-core
This npm package contains some function encapsulation commonly used in development, which is more engineering-oriented.
How to Install
npm i @rosmarinus/nest-core
Modules introduction
- Context
Context decorator, will automatically encapsulate the context of each interface, for example, it will encapsulate the logger used for the interface
- AllExceptionsFilter
This module will capture global errors and return uniform results
- HeadersMiddleware
This module will add Fcgi-Srtime and Request-Id to the headers of all returned results.
- RedisService and RedisModule
This module encapsulates ioredis into a nest module