0.1.3 • Published 2 years ago

envcfg-merge-configs-pmb v0.1.3

Weekly downloads
-
License
ISC
Repository
github
Last release
2 years ago

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 ifPrefixProp option from envcfg-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