1.3.2 • Published 4 years ago

@nestling/config v1.3.2

Weekly downloads
2
License
MIT
Repository
github
Last release
4 years ago

Config module for NestJS

Module makes use of objenv to automatically process environment variables.

Usage:

import { Module } from '@nestjs/common'
import { ConfigModule, ConfigService } from '@nestling/config'
import { environment } from '../environments/environment'

export interface IMyConfig {
  host: string
  port: number
  ...etc
}

@Module({
  imports: [
    ConfigModule.forRoot<IMyConfig>(environment, {
      prefix: process.env.OBJENV_PREFIX
    })
  ]
})
export class ApplicationModule {}
1.3.2

4 years ago

1.3.1

4 years ago

1.3.0

4 years ago

1.2.1

5 years ago

1.2.0

6 years ago

1.1.1

6 years ago

1.1.0

6 years ago

1.0.1

6 years ago