@exaify/yml-config
v0.0.3
Published
Extending @nestjs/config library functionality
Readme
Description
The yml-config extending from @nestjs/config,support yaml configuration and typeorm options wrapper.
Installation
$ npm install -g @exaify/yml-configUsage
The yml-config module providers : yamlConfigLoader ,PostgresOptionsFactory factory and MysqlOptionsFactory
- yamlConfigLoader : a environment yaml configuration files loader tool
Configuration forRoot
import { yamlConfigLoader } from 'exaify@yml-config'
@Module(
imports:[
YmlConfigModule.forRoot({isGlobal:true}), // some to @nestjs/config
... // others
]
)
Configuration forRoot
import { yamlConfigLoader } from 'exaify@yml-config'
@Module(
imports:[
YmlConfigModule.forRoot({
ymlBase: '.conf', // update your yml configuration files OR SET YML_CONF_BASE in process.env
load:[yamlConfigLoader]
})
... // others
]
):boom: :boom: :boom: :star2: :star2: :two_hearts: :two_hearts: :two_hearts:
:star: :star: :star: :star: :star: :star: :star: :star:
Learn more usages in the source yaml-config docs
Stay in touch
- Twitter - @lamborghini171
:revolving_hearts::revolving_hearts::revolving_hearts: :raising_hand: :raising_hand: :raising_hand: :raising_hand: :raising_hand: :raising_hand: :raising_hand: :raising_hand: :raising_hand: :raising_hand: :raising_hand: :raising_hand::raising_hand::raising_hand::revolving_hearts::revolving_hearts::revolving_hearts:
Sincerely invite experts to improve the project functions together !
:revolving_hearts::revolving_hearts::revolving_hearts: :raising_hand: :raising_hand: :raising_hand: :raising_hand: :raising_hand: :raising_hand: :raising_hand: :raising_hand: :raising_hand: :raising_hand: :raising_hand: :raising_hand::raising_hand::raising_hand::revolving_hearts: :revolving_hearts::revolving_hearts:
License
The @xaify/yaml-config packages is MIT licensed.
Give me a cup of coffee? Thanks much.


