setuprc

0.9.9-beta21 • Public • Published

About

The SetuprRC is a hard typed setup object holder. Nothing more.

init

const setup = new  (require('setuprc')).base({
    'testString':{ // setup option
        'type'    : 'string', //  typeHardening type 
        'default' : 'value'   // default value
       // ... optional typehardening limiters
    },
    'testList':{
        'type'    : 'list',
        'list'    : ['tarray','parray','give','me','blue','bird','6array','7array'],
        'default' : ['tarray','parray']
    }
});

basic usage

Set a value

setup.set(
    'testString',
    'new value'
);

// return with boolean true or false

Get a value


setup.get(
    'testString'
);

// return  with the setting option.

all value


setup.all();

// return  fill setup option

Reset all value to default


setup.reset();

Readme

Keywords

none

Package Sidebar

Install

npm i setuprc

Weekly Downloads

2

Version

0.9.9-beta21

License

GPL-3.0-or-later

Unpacked Size

12.6 kB

Total Files

4

Last publish

Collaborators

  • soldy