0.1.3 • Published 4 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 configs 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
ifPrefixPropoption fromenvcfg-import-deep-pmbto easily have your CLI config decide which environment config to accept.
See also
Known issues
- Needs more/better tests and docs.
License
ISC