read-config-ng
Version:
Multi format configuration loader
11 lines • 541 B
TypeScript
import { ConfigObject } from '../types.js';
/**
* Override configuration values with environment variables
* Environment variables should be prefixed with the marker (e.g., CONFIG_)
* and use underscores to separate nested properties
*
* Example: CONFIG_database_host=localhost overrides config.database.host
*/
export declare function override(marker: string | boolean, config: ConfigObject, values: NodeJS.ProcessEnv | Record<string, string | undefined>): ConfigObject;
export default override;
//# sourceMappingURL=override.d.ts.map