Skip to main content
Deno 2 is finally here 🎉️
Learn more
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)
Latest
class Composer
import { Composer } from "https://deno.land/x/windmill@v1.418.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.