nestjs-config:使用dotenv的nestjs的配置模块

时间:2021-02-06 08:56:43
【文件属性】:
文件名称:nestjs-config:使用dotenv的nestjs的配置模块
文件大小:138KB
文件格式:ZIP
更新时间:2021-02-06 08:56:43
config dotenv typescript nestjs TypeScriptTypeScript Nestjs配置 NestJ的配置组件。 产品特点 使用Glob加载您的配置文件 感谢支持不同的环境配置 在运行时更改和加载配置 安装 纱 yarn add nestjs-config NPM npm install nestjs-config --save 入门 假设我们在项目中有一个名为src/config的文件夹,其中包含几个配置文件。 /src ├── app.module.ts ├── config │ ├── express.ts │ ├── graphql.ts │ └── grpc.ts 让我们在app.module.ts注册配置模块 import { Mo
【文件预览】:
nestjs-config-master
----.gitignore(160B)
----package.json(2KB)
----package-lock.json(192KB)
----src()
--------decorators()
--------module()
--------__tests__()
--------index.ts(56B)
--------utils.ts(1017B)
--------constants.ts(157B)
----.travis.yml(235B)
----CONTRIBUTING.md(3KB)
----LICENSE(1KB)
----tsconfig.json(631B)
----.github()
--------issue_template.md(453B)
----.prettierignore(5B)
----examples()
--------decorators()
--------typeorm()
--------basic()
----README.md(16KB)
----index.ts(24B)
----.npmignore(86B)
----.prettierrc(51B)
----yarn.lock(159KB)

网友评论