Config Handlers
Methods
(async, static) tomlReadHandler(text, opts) → {object}
TOML read handler
Parameters:
| Name | Type | Description |
|---|---|---|
text | string | Text to be parsed |
opts | object | Options object |
Returns:
Parsed object
- Type:
- object
(async, static) yamlReadHandler(text, opts) → {object}
YAML read handler
Parameters:
| Name | Type | Description |
|---|---|---|
text | string | Text to be parsed |
opts | object | Options object |
Returns:
Parsed object
- Type:
- object
(async, static) yamlWriteHandler(object, opts) → {string}
YAML write handler
Parameters:
| Name | Type | Description |
|---|---|---|
object | object | Object to be converted |
opts | object | Options object |
Returns:
YAML string
- Type:
- string
(async, inner) tomlWriteHandler(object, opts) → {string}
TOML write handler
Parameters:
| Name | Type | Description |
|---|---|---|
object | object | Object to be converted |
opts | object | Options object |
Returns:
TOML string
- Type:
- string