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

x/windmill/node_modules/yaml/dist/parse/parser.d.ts>Parser#parse

Windmill deno client (separated from the main repo because most of the code is auto-generated from the openapi and not worth committing)
Go to Latest
method Parser.prototype.parse
import { Parser } from "https://deno.land/x/windmill@v1.354.0/node_modules/yaml/dist/parse/parser.d.ts";

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.