Skip to content
This repository has been archived by the owner on Oct 29, 2021. It is now read-only.
/ nest-config Public archive

Deprecated in flavor of @nestjs-steroids/environment. Configuration module for Nest.js (wraps convict module).

License

Notifications You must be signed in to change notification settings

unlight/nest-config

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Deprecated in flavor of @nestjs-steroids/environment

nest-config

Configuration module for Nest.js (wraps convict module).

INSTALL

npm i -S nest-config

USAGE

import { ConfigModule } from 'nest-config';
import { Module } from '@nestjs/common';

@Module({
    imports: [ConfigModule.forRoot(schema: convict.Schema<T> | string)],
})
export class AppModule {
}
export class UserController {
    
    constructor (
        private config: ConfigService
    ) { }

    hello() {
        const foo = this.config.get<string>('foo');
    }
}

About

Deprecated in flavor of @nestjs-steroids/environment. Configuration module for Nest.js (wraps convict module).

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published