nest项目常用npm包

typeorm

`@nest/typeorm`
通过对象操作数据库,而不是直接操作数据库

class-validator

通过注解形式校验入参

file-stream-rotator

日志 分解文件流存储

nestjs-conig

把 nestjs 的 config 文件

@nestjs/mapped-types

复用类似的 dto
https://github.com/nestjs/mapped-types

Author: liuarui
Link: https://liuarui.github.io/2021/07/13/后端/nest项目常用npm包/
Copyright Notice: All articles in this blog are licensed under CC BY-NC-SA 4.0 unless stating additionally.