Settings
Provides access to the general configuration used across Mebo.
const Mebo = require('mebo');
// listing the available settings
console.log(Mebo.Settings.keys());
Static Method Summary
| Static Public Methods | ||
| public static |
Returns the value assigned for the key |
|
| public static |
Returns a boolean telling if the input key is under the arbitrary data |
|
| public static |
Returns the keys included under the settings |
|
| public static |
Sets a value based on key & value under the settings |
|
Static Public Methods
public static get(key: string, defaultValue: *): * source
Returns the value assigned for the key
Params:
| Name | Type | Attribute | Description |
| key | string | name of the key |
|
| defaultValue | * |
|
optional value returned when the key is not assigned |
Return:
| * |
public static has(key: string): boolean source
Returns a boolean telling if the input key is under the arbitrary data
Params:
| Name | Type | Attribute | Description |
| key | string | key name |