Skip to main content
Module

x/js_yaml_port/js-yaml.js>LoadOptions

This is a simple and crude port of JS-YAML for Deno.
Latest
interface LoadOptions
import { type LoadOptions } from "https://deno.land/x/js_yaml_port@3.14.0/js-yaml.js";

Properties

optional
filename: string

string to be used as a file path in error/warning messages.

optional
schema: SchemaDefinition

specifies a schema to use.

optional
json: boolean

compatibility with JSON.parse behaviour.

Methods

optional
onWarning(this: null, e: YAMLException): void

function to call on warning messages.

optional
listener(
this: State,
eventType: EventType,
state: State,
): void

listener for parse events