0.0.9 • Published 1 year ago

mharj-node-variable-util v0.0.9

Weekly downloads
8
License
MIT
Repository
github
Last release
1 year ago

node-variable-util

Utility to get variables for NodeJS from multiple resources

Async check variable from

  • ENV (and .env via dotenv)
  • docker secrets (option to force filename lowercase)
  • settings.json file (easy to patch with i.e. Azure DevOps File Transform task)

Good way to utilize settings.json is to create all variables to this json file, fill null as value and add this "empty" one to git.

await getConfigVariable('SETTINGS_VARIABLE', 'default_value');

TODO: current lookup order still hardcoded 'dockersecret', 'env', 'settingsfile', later should be able to control this.

0.0.9

1 year ago

0.0.8

1 year ago

0.0.7

1 year ago

0.0.6

2 years ago

0.0.5

3 years ago

0.0.3

3 years ago

0.0.2

3 years ago

0.0.1

3 years ago