Skip to main content
Module

std/yaml/parse.ts>parse

The Deno Standard Library
Latest
function parse
import { parse } from "https://deno.land/std@0.223.0/yaml/parse.ts";

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