Skip to main content
Module

x/frontmatter/deps.ts>yamlParse

A simple frontmatter parser for deno.
Latest
function yamlParse
import { yamlParse } from "https://deno.land/x/frontmatter@v0.1.5/deps.ts";

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