Skip to main content
Deno 2 is finally here 🎉️
Learn more
Go to Latest
function YAML.parse
import { YAML } from "https://deno.land/x/embassyd_sdk@v0.3.3.0.4/mod.ts";
const { parse } = YAML;

Parses content as single YAML document.

Returns a JavaScript object or throws YAMLException on error. By default, does not support regexps, functions and undefined. This method is safe for untrusted data.

Parameters

content: string
optional
options: ParseOptions

Returns

unknown