> For the complete documentation index, see [llms.txt](https://luffyyy.gitbook.io/beardlib/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://luffyyy.gitbook.io/beardlib/utilities/yaml.md).

# YAML

Updated for version 4.0.

## YAML Class

*Added in version 4.0*

A class used to parse YAML strings into tables. Great for localization (compared to JSON).

Taken from <https://github.com/exosite/lua-yaml> The code is sligthly modified but generally function names are the same.

## Functions

| Function                       | Return type | Description                                                          |
| ------------------------------ | ----------- | -------------------------------------------------------------------- |
| eval(String str)               | Table       | Converts a YAML string data to a table                               |
| dump(Any value, Number indent) | String      | Returns YAML dump of a value with `indent` as the indentation number |
