summaryrefslogtreecommitdiff
path: root/std/encoding/_yaml/example/dump.ts
blob: 3304474f2437da3de0fc05ac694f1ee692205418 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
// Copyright 2018-2021 the Deno authors. All rights reserved. MIT license.

import { stringify } from "../../yaml.ts";

console.log(
  stringify({
    foo: {
      bar: true,
      test: [
        "a",
        "b",
        {
          a: false,
        },
        {
          a: false,
        },
      ],
    },
    test: "foobar",
  }),
);