Conman
Configuration manager for Hapi.js.
var Hapi = ; var server = 80;server;
In handler:
var value = serverpluginsconman;
Configs
The configs is a group of YAML files. When initializing Conman all the files
in configPath
will be loaded and merged into one object. A file named
config.yaml
will always be loaded last. This allow overriding stuff in
production or development.
Objects in your configuration can be traversed using a keypath where keys are
separated by .
. If value was not found in config defaultValue
or null
will be returned.