nconf source for conman
Adds an object to conman
Options
Options | Description | Type | Default |
---|
name | name of the source to be used instead of the type | string | |
key | key where the source data will be included inside the config | string, if no key is provided data is at the root of the config | |
Use example:
const conman = require('@highly-attractive-people/conman');
const objSource = require('@highly-attractive-people/conman-obj-source');
const obj = objSource(
{ name: 'defaultNconf' },
{
my: 'value'
}
);
conman()
.addSource(obj)
.build();