1.1.0 • Published 4 years ago

@highly-attractive-people/conman-object-source v1.1.0

Weekly downloads
-
License
ISC
Repository
-
Last release
4 years ago

nconf source for conman

Adds an object to conman

Options

OptionsDescriptionTypeDefault
namename of the source to be used instead of the typestring
keykey where the source data will be included inside the configstring, 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' }, // you can assign a name
  {
    my: 'value'
  } // object to include
);

conman()
  .addSource(obj)
  .build();