Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/bob/deps.ts>yaml.parse

A static site generator for the dynamic web - develop with TSX and build with Deno
Latest
function yaml.parse
import { yaml } from "https://deno.land/x/bob@v2.8.1/deps.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