srv-config

1.0.0 • Public • Published

srv-config

Configuration functionality for server blueprint

Reads configuration from file. File location can be specified in environment variable CONF_DIR (defaults to process.cwd()). File name can be specified in environment variable CONF_FILE (defaults to config.properties).

  • Class Config
    • globalConfig global configuration object (shallow copy)
    • confDir directory for configuration files
    • initGlobalConfig() reads configuration file and initializes global configuration
    • getValue() retrieves value from default configuration via specified string path

Readme

Keywords

none

Package Sidebar

Install

npm i srv-config

Weekly Downloads

1

Version

1.0.0

License

MIT

Last publish

Collaborators

  • alius