envcfg-merge-configs-pmb
v0.1.3
Published
merge-options + envcfg-import-deep-pmb
Downloads
4
Readme
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