Skip to content

rosmarinus-project/nest-core

Repository files navigation

@rosmarinus/nest-core

npm package build status Start new PR in StackBlitz Codeflow

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

  1. Context

Context decorator, will automatically encapsulate the context of each interface, for example, it will encapsulate the logger used for the interface

  1. AllExceptionsFilter

This module will capture global errors and return uniform results

  1. HeadersMiddleware

This module will add Fcgi-Srtime and Request-Id to the headers of all returned results.

  1. RedisService and RedisModule

This module encapsulates ioredis into a nest module