Releases: acstll/config-sync
Releases · acstll/config-sync
Release list
Simpler API
The exported function now takes a single argument, which can be an object or a string.
If an object is passed, it will be used as the source of the configuration object returned, options from command-line and from a nested object the key of which equals === the environment at process.env.NODE_ENV will be merged as normal.
var config = configSync({ foo: 'bar' })If a string is passed, it will be used as the directory location in which a config.json file will be located are requireed.
var config = configSync('/var/www/myproject')