[Major] essential-config 3.0.0
Changelog
- Changed return value from
configto{config, configFile, configFolder} - Changed second argument from
defaultstooptions - Defaults are now passed through
options.defaults - Added
options.sensitiveKeys - Rewrote config style
- Upgraded dependencies
Config style example
#####################
### Configuration ###
#####################
# Option car
# Default: {
# "color": "red",
# "speed": 522
# }
car:
color: red
speed: 522
# Option hello
# Default: "world"
hello: world
# Option sonic
# Default: {
# "color": "blue",
# "speed": 9001
# }
sonic:
color: blue
speed: 9001
###############################
### Sensitive (keep secret) ###
###############################
# Option password (sensitive)
password: hunter2Code changes: v2.1.1 … v3.0.0