Skip to content

When using multiple files how to save to specific one? #406

Description

@WeaponX86

In the example you can open multiple files. When you run save(), how do I specify where it goes?

nconf.file('path/to/your/config.json');
// add multiple files, hierarchically. notice the unique key for each file
nconf.file('user', 'path/to/your/user.json');
nconf.file('global', 'path/to/your/global.json');

nconf.set('foo','bar');

nconf.save(); // Where is 'foo' saved?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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