项目
在 GitHub 查看
nestjs/config
关于
Nest 框架(Node.js)的配置模块 🍓
开发工具实测星标增长
- 24小时
- 0
- 7天
- 0
- 15天
- +1
- 1个月
- 正在收集历史
各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。
README.md
原文A progressive Node.js framework for building efficient and scalable server-side applications.
Description
Configuration module for Nest based on the dotenv (to load process environment variables) package.
Installation
$ npm i --save @nestjs/config
Quick Start
Observability
NestJS Observe, the official observability platform for Nest, takes its key pair from ConfigService like any other setting:
ObserveModule.forRootAsync({
imports: [ConfigModule],
inject: [ConfigService],
useFactory: (config: ConfigService) => ({
appKey: config.getOrThrow('OBSERVE_APP_KEY'),
appSecret: config.getOrThrow('OBSERVE_APP_SECRET'),
}),
});
Requests, queue and cron jobs, errors, queries and traces are then reported with no further setup. See Asynchronous configuration in the Observability chapter.
Support
Nest is an MIT-licensed open source project. It can grow thanks to the sponsors and support by the amazing backers. If you'd like to join them, please read more here.
Stay in touch
- Author - Kamil Myśliwiec
- Website - https://nestjs.com
- Twitter - @nestframework
License
Nest is MIT licensed.
探索相关项目
加载中…