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

x/bob/deps.ts>yaml.parse

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