1.0.4 • Published 5 years ago

@attibee/config v1.0.4

Weekly downloads
8
License
Apache-2.0
Repository
github
Last release
5 years ago

AttibeeJS Config

Used to create flexible configuration of classes including support for default values.

Installation

npm install @attibee/config

Usage

import {default as Config} from '@attibee/config'

var myConfig = new Config();

//if no value is set for foo, the default is bar
myConfig.setDefaults({
    'foo': 'bar'
});

//outputs 'bar'
myConfig.getConfig('foo');

//set config key 'foo' to 'boo'
myConfig.setConfig('foo', 'boo');

//outputs 'boo'
myConfig.getConfig('foo');
1.0.4

5 years ago

1.0.3

5 years ago

1.0.2

5 years ago

1.0.1

6 years ago

1.0.0

6 years ago

0.1.0-alpha.0

7 years ago

0.1.1

7 years ago

0.1.0

7 years ago