. <p align="center"> Description Nestjs-easyconfig loads configs from your .env (Wraps dotenv module) ⚙️ 🔥 Installation $ npm install nestjs-easyconfig $ yarn add nestjs-easyconfig Usage With config file supplied (basic): import { Module } from '@nestjs/common' import { EasyconfigModule } from 'nestjs-easyconfig' @Module({ imports: [EasyconfigModule.register({path: './config/.env'})] }) export class AppModule {} With config file supplied and safe set to true: import { Module } from '@nestjs/common'; import { EasyconfigModule } from 'nestjs-easyconfig'; @Module({ imports: [EasyconfigModule.register({path: './config/.env', safe: true})], }) export class AppModule {} By default safe is set to false. When safe is set to true, the module compares the supplied env file with the sample env file to find missing keys. If any keys…
Thanks Ben for the continuous updates.Anyone want to help me out with this one
rubiin / nestjs-easyconfig
Manage configs on the go 🔥
.
Description
Nestjs-easyconfig loads configs from your⚙️ 🔥
.env
(Wraps dotenv module)Installation
Usage
With config file supplied (basic):
With config file supplied and safe set to true:
By default safe is set to false. When safe is set to
true
, the module compares the supplied env file with the sample env file to find missing keys. If any keys…