We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
couldn't get inputSeparator working i.e.
import path from 'node:path'; import nconf from 'nconf';
// config process.env['PATHS__LOGDIR'] = 'test';
nconf.argv({parseValues: true}) .env({lowerCase: true, // inputSeparator : '', doesnt work separator : '', // works ok parseValues: true}); // .file({ file: 'config/server.json' });
const logFile = path.join(nconf.get('paths:logdir'), 'server.log'); console.log('directory ', nconf.get('paths:logdir')); console.log('logFile ', logFile); console.log('should be ', process.env.PATHS__LOGDIR);
The text was updated successfully, but these errors were encountered:
No branches or pull requests
couldn't get inputSeparator working i.e.
import path from 'node:path';
import nconf from 'nconf';
// config
process.env['PATHS__LOGDIR'] = 'test';
nconf.argv({parseValues: true})
.env({lowerCase: true,
// inputSeparator : '', doesnt work
separator : '', // works ok
parseValues: true});
// .file({ file: 'config/server.json' });
const logFile = path.join(nconf.get('paths:logdir'), 'server.log');
console.log('directory ', nconf.get('paths:logdir'));
console.log('logFile ', logFile);
console.log('should be ', process.env.PATHS__LOGDIR);
The text was updated successfully, but these errors were encountered: