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

1.1.0 • Public • Published

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

Readme

Keywords

none

Package Sidebar

Install

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

Weekly Downloads

1

Version

1.1.0

License

ISC

Unpacked Size

9.28 kB

Total Files

6

Last publish

Collaborators

  • helior
  • jepz20