util/yaml

Custom YAML parse and stringify functions.
Source:

Methods

(static) parse(str) → {any}

Parse a YAML string into a JavaScript value.
Source:
Parameters:
Name Type Description
str string YAML string.
Returns:
Type:
any
JavaScript object or primitive value.

(static) stringify(object) → {string}

Dump the YAML string of a JavaScript value.
Source:
Parameters:
Name Type Description
object any JavaScript object or primitive value.
Returns:
Type:
string
YAML string.