@highly-attractive-people/conman-object-source

object source for conman configuration manager

Usage no npm install needed!

<script type="module">
  import highlyAttractivePeopleConmanObjectSource from 'https://cdn.skypack.dev/@highly-attractive-people/conman-object-source';
</script>

README

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' }, // you can assign a name
  {
    my: 'value'
  } // object to include
);

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