// Copyright 2011-2015 by Vitaly Puzrin. All rights reserved. MIT license.
// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
// This module is browser compatible.

/**
 * {@linkcode parse} and {@linkcode stringify} for handling
 * {@link https://yaml.org/ | YAML} encoded data.
 *
 * Ported from
 * {@link https://github.com/nodeca/js-yaml/commit/665aadda42349dcae869f12040d9b10ef18d12da | js-yaml v3.13.1}.
 *
 * If your YAML contains multiple documents in it, you can use {@linkcode parseAll} for
 * handling it.
 *
 * To handle `regexp`, and `undefined` types, use {@linkcode EXTENDED_SCHEMA}.
 * You can also use custom types by extending schemas.
 *
 * ## :warning: Limitations
 * - `binary` type is currently not stable.
 *
 * For further examples see https://github.com/nodeca/js-yaml/tree/master/examples.
 * @example
 * ```ts
 * import {
 *   parse,
 *   stringify,
 * } from "@std/yaml";
 *
 * const data = parse(`
 * foo: bar
 * baz:
 *   - qux
 *   - quux
 * `);
 * console.log(data);
 * // => { foo: "bar", baz: [ "qux", "quux" ] }
 *
 * const yaml = stringify({ foo: "bar", baz: ["qux", "quux"] });
 * console.log(yaml);
 * // =>
 * // foo: bar
 * // baz:
 * //   - qux
 * //   - quux
 * ```
 *
 * @module
 */

export * from "./parse.ts";
export * from "./stringify.ts";
export * from "./type.ts";
export * from "./schema/mod.ts";

// denoCacheMetadata={"headers":{"content-security-policy":"default-src 'none'; script-src 'none'; style-src 'none'; img-src 'none'; font-src 'none'; connect-src 'none'; frame-src 'none'; object-src 'none'; frame-ancestors 'none'; sandbox; form-action 'none';","x-robots-tag":"noindex","access-control-expose-headers":"*","accept-ranges":"bytes","content-length":"1370","x-jsr-backend":"modules","set-cookie":"__cf_bm=t62a2X6fymHd7pDLsjgSet4KCnxLrrPpY2bmqVGUmmg-1785241874.934301-1.0.1.1-YXAj.od7kYoKNzf3PZT49AwOhGC.Hjsj2W_aG_ES7Zn0fw0I0of4tR.mwTrKOYHpU3qqEk4yqqK2jVCGt3FGXILOZhnmrQnARDO3pLDU67C4EhIE9rGuoyGYx1JU_77z; HttpOnly; SameSite=None; Secure; Path=/; Domain=jsr.io; Expires=Tue, 28 Jul 2026 13:01:14 GMT","x-content-type-options":"nosniff","alt-svc":"h3=\":443\"; ma=86400","date":"Tue, 28 Jul 2026 12:31:14 GMT","cross-origin-resource-policy":"cross-origin","age":"1700008","cache-control":"public, max-age=31536000, immutable","report-to":"{\"group\":\"cf-nel\",\"max_age\":604800,\"endpoints\":[{\"url\":\"https://a.nel.cloudflare.com/report/v4?s=1NGVFs2uxuI7BRKUEfqjb9o4AjLNnkMKXzHxnIJRSjrJY%2FLgzT1G7PvEGoNrMfzVBVWzXvEk5j6yLvr5LvdAIx%2BGOXU1OJwxj8Yv0h27nsEp76UDDcbXbfk%3D\"}]}","cf-cache-status":"HIT","server":"cloudflare","nel":"{\"report_to\":\"cf-nel\",\"success_fraction\":0.0,\"max_age\":604800}","content-type":"text/typescript","cf-ray":"a223e6564e917db6-LAX","access-control-allow-origin":"*","etag":"\"b6dd89c7acc49fd260f15de2050d27b7\"","vary":"Origin"},"url":"https://jsr.io/@std/yaml/0.224.3/mod.ts","time":1785241874}