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

x/windmill/node_modules/yaml/browser/dist/compose/composer.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.360.0/node_modules/yaml/browser/dist/compose/composer.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.