UNPKG

config

Version:

Configuration control for production node deployments

20 lines (16 loc) 622 B
const { deferConfig, DeferredConfig } = require('./lib/defer.js'); /** * @deprecated please use the new callback mechanism * @see lib/defer.js * @type {typeof import('./lib/defer').deferConfig} */ module.exports.deferConfig = (...args) => { const { Util } = require('./lib/util.js'); Util.errorOnce("DEFER_CONFIG", 'node-config now supports config file callbacks in place of deferConfig(), which is deprecated.'); return deferConfig(...args); } /** * @deprecated please use the new callback mechanism * @type {typeof import('./lib/defer').DeferredConfig} */ module.exports.DeferredConfig = DeferredConfig;