Skip to content

Releases: acstll/config-sync

Release list

Simpler API

Choose a tag to compare

@acstll acstll released this 16 Oct 10:48

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')