UNPKG

@nestjs/config

Version:

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

12 lines (11 loc) • 261 B
import { setProperty } from './property-path.util.js'; /** * @publicApi */ export function mergeConfigObject(host, partial, token) { if (token) { setProperty(host, token, partial); return partial; } Object.assign(host, partial); }