Members
config
Properties| Name | Type | Description |
|---|---|---|
config | object | Configuration object |
Methods
fromJson(text, options) → {object}
Parse JSON text
Parameters:
| Name | Type | Description |
|---|---|---|
text | string | Text to be parsed |
options | object | Options object |
Returns:
Parsed object
- Type:
- object
fromToml(text, options) → {object}
Parse TOML text
Parameters:
| Name | Type | Description |
|---|---|---|
text | string | Text to be parsed |
options | object | Options object |
Returns:
Parsed object
- Type:
- object
fromYaml(text, options) → {object}
Parse YAML text
Parameters:
| Name | Type | Description |
|---|---|---|
text | string | Text to be parsed |
options | object | Options object |
Returns:
Parsed object
- Type:
- object
fromYml(text, options) → {object}
Parse YML text. Alias for fromYaml.
Parameters:
| Name | Type | Description |
|---|---|---|
text | string | Text to be parsed |
options | object | Options object |
Returns:
Parsed object
- Type:
- object
toJson(object, options) → {string}
Convert object to JSON string
Parameters:
| Name | Type | Description |
|---|---|---|
object | object | Object to be converted |
options | object | Options object |
Returns:
JSON string
- Type:
- string
toToml(object, options) → {string}
Convert object to TOML string
Parameters:
| Name | Type | Description |
|---|---|---|
object | object | Object to be converted |
options | object | Options object |
Returns:
TOML string
- Type:
- string
toYaml(object, options) → {string}
Convert object to YAML string
Parameters:
| Name | Type | Description |
|---|---|---|
object | object | Object to be converted |
options | object | Options object |
Returns:
YAML string
- Type:
- string
toYml(object, options) → {string}
Convert object to YML string. Alias for toYaml.
Parameters:
| Name | Type | Description |
|---|---|---|
object | object | Object to be converted |
options | object | Options object |
Returns:
YML string
- Type:
- string