Thanks to visit codestin.com
Credit goes to github.com

Skip to content

seems to be an issue with inputSeparator not working #427

@edmandell

Description

@edmandell

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions