Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/lume_langdata/deps.ts>YAML.parse

A Lume plugin for multi-language websites.
Latest
function YAML.parse
import { YAML } from "https://deno.land/x/lume_langdata@v2.0.6/deps.ts";
const { parse } = YAML;

Parses content as single YAML document.

Returns a JavaScript object or throws YAMLError 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