bajo
Version:
A framework to build a giant monstrous app rapidly
28 lines (20 loc) • 784 B
Markdown
---
title: function getConfig()
---
Get configuration object of **bajo** or its **plugin**
###### Parameters:
| Name | Type | Default Value | Description |
| ---- | ---- | ------------- | ----------- |
| ```name``` | string | ```bajo``` | A valid plugin name |
| ```options``` | object |||
| ```full``` | boolean | ```false``` | If ```true```, returns ALL config objects belonging to named plugin. Otherwise, returns only subset of objects that can be changed through configuration file |
| ```clone``` | boolean | ```false``` | If ```true```, returns cloned object |
###### Returns:
```object```
#### Example
```javascript
...
const { getConfig } = this.bajo.helper
const cfg = getConfig('bajoLogger')
console.log(cfg)
```