Is there any method in nconf
to collect all the keys from all the stores into a single object?
Imagine I've got this little script:
assert = require('assert');
nconf = require('nconf');
nconf.argv().env().defaults({'C': 3});
assert.equal(nconf.get('A'), 1);
assert.equal(nconf.get('B'), 2);
assert.equal(nconf.get('C'), 3);
assert.deepEqual({'A':1, 'B':2, 'C':3}, nconf.X); // <-- What's X?
that I run with
A=1 node script.js -B 2
Is there an nconf.X
that will pass the test? I'd even settle for listing all the configured keys.