0.1.3 • Published 3 years ago
envcfg-merge-configs-pmb v0.1.3
envcfg-merge-configs-pmb
merge-options + envcfg-import-deep-pmb
API
This module exports one function:
envcfgMergeConfigs(opt, config1, …configs)
Merges all your config
s using merge-options
,
then imports env vars by applying envcfg-import-deep-pmb
with
options from opt
and forced { inplace: true }
.
Returns the resulting config.
- Pro Tip: Use the
ifPrefixProp
option fromenvcfg-import-deep-pmb
to easily have your CLI config decide which environment config to accept.
See also
Known issues
- Needs more/better tests and docs.
License
ISC