UNPKG

@nestjs/config

Version:

Configuration for NestJS: load .env files and custom configuration, validate it at startup, and read it through an injectable ConfigService.

3 lines (2 loc) • 86 B
import * as dotenv from 'dotenv'; export const getDefaultParser = () => dotenv.parse;