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

x/deno/std/encoding/yaml/parse.ts>parse

A modern runtime for JavaScript and TypeScript.
Go to Latest
function parse
import { parse } from "https://deno.land/x/deno@v0.28.0/std/encoding/yaml/parse.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