summaryrefslogtreecommitdiff
path: root/std/encoding/_yaml/example/dump.ts
blob: bc4684dfe02331cebf30d838aa9390e36daef497 (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-2020 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",
  }),
);