This npm package contains some function encapsulation commonly used in development, which is more engineering-oriented.
npm i @rosmarinus/nest-core
- 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