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

x/aether/deps.ts>YAML.parseAllDocuments

A Deno library to interface with the Discord API
Latest
function YAML.parseAllDocuments
import { YAML } from "https://deno.land/x/aether@v0.0.3/deps.ts";
const { parseAllDocuments } = YAML;

Parse the input as a stream of YAML documents.

Documents should be separated from each other by ... or --- marker lines.

Parameters

source: string

Returns

Document.Parsed<T>[] | EmptyStream

If an empty docs array is returned, it will be of type EmptyStream and contain additional stream information. In TypeScript, you should use 'empty' in docs as a type guard for it.