parse
Parse an input string into JavaScript.
Only supports input consisting of a single YAML document; for multi-document support you should use YAML.parseAllDocuments
. May throw on error, and may log warnings using console.warn
.
Parameters
str
A string with YAML formatting.
reviver
A reviver function, as in
JSON.parse()