nconf
nconf copied to clipboard
nconf .save always create an empty json file
I'm using nconf 0.8.4. This is the code:
nconf
.env()
.file('./.tmp/env.json')
.save((err) => {
if (err) {
$.util.log(err);
}
});
but the env.json file contains always '{}'. Calling nconf.get('MY_VAR') after nconf.env() outputs the correct value.
same issue here