An open API service indexing awesome lists of open source software.

https://github.com/thinkjs/think-config

Config for ThinkJS 3.x
https://github.com/thinkjs/think-config

config thinkjs3

Last synced: about 1 year ago
JSON representation

Config for ThinkJS 3.x

Awesome Lists containing this project

README

          

# think-config

Config manager for ThinkJS 3.x

## How to use

```
npm install think-config
```

```js
const Config = require('think-config');
const instance = new Config(config);
instance.get('name');
instance.get('foo.bar');
instance.get(); // get all config
instance.get('name', otherConfig);

instance.set('name', value);
instance.set('foo.bar', value);
```