Skip to content

[Major] essential-config 3.0.0

Choose a tag to compare

@Jaid Jaid released this 17 Jun 19:34
be332e7

Changelog

  • Changed return value from config to {config, configFile, configFolder}
  • Changed second argument from defaults to options
  • 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: hunter2

Code changes: v2.1.1 … v3.0.0