@femto-apps/config
v4.0.0
Published
A simple utility programs that looks for and loads a config file.
Downloads
6
Readme
Config Loader
Looks for configuration file such as config.js
, config.json
and config.hjson
in the top level directory, in the config
directory, in the configs
directory and in the test-configs
directory. It first attempts to load config.default.js
, config.default.json
and config.default.hjson
in the aforementioned directories in case the non-default files cannot be found. Usage:
const config = require('@femto-host/config')
config.get('path.to.option[0]')