Configuration functions
Requires
Methods
changed(key) → {boolean}
Determine if a key has changed since last save
Parameters:
Name | Type | Description |
---|---|---|
key |
string | The key |
Returns:
True if changed, False otherwise.
- Type
- boolean
init(options) → {boolean}
Public init for configuration object
Parameters:
Name | Type | Description |
---|---|---|
options |
object | Existing options to extend |
Returns:
Success
- Type
- boolean
inspect(key)
Print Cocoa and JS config objects to console
Parameters:
Name | Type | Description |
---|---|---|
key |
string | A specific key to print |
setDebug(level)
Set the debug level
Parameters:
Name | Type | Description |
---|---|---|
level |
number | The debug level |
update(optionsopt)
Update the configuration with new config
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
options |
object |
<optional> |
Options (unused) |