nconf icon indicating copy to clipboard operation
nconf copied to clipboard

nconf .save always create an empty json file

Open faxioman opened this issue 9 years ago • 1 comments

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.

faxioman avatar Feb 23 '16 11:02 faxioman

same issue here

rahul-dutt-sharma avatar Mar 03 '23 12:03 rahul-dutt-sharma