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

x/windmill/node_modules/yaml/browser/index.js>Composer

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
class Composer
import { Composer } from "https://deno.land/x/windmill@v1.352.0/node_modules/yaml/browser/index.js";

Compose a stream of CST nodes into a stream of YAML Documents.

import { Composer, Parser } from 'yaml'

const src: string = ...
const tokens = new Parser().parse(src)
const docs = new Composer().compose(tokens)

Constructors

new
Composer(options?)

Methods

compose(
tokens,
forceDoc?,
endOffset?,
)

Compose tokens into documents.

decorate(doc, afterDoc)
end(forceDoc?, endOffset?)

Call at end of input to yield any remaining document.

next(token)

Advance the composer by one CST token.

Current stream status information.

Mostly useful at the end of input for an empty stream.