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

x/aether/deps.ts>YAML.Parser#parse

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

Parse source as a YAML stream. If incomplete, a part of the last line may be left as a buffer for the next call.

Errors are not thrown, but yielded as { type: 'error', message } tokens.

Parameters

source: string
optional
incomplete: boolean

Returns

Generator<Token, void, unknown>

A generator of tokens representing each directive, document, and other structure.