summaryrefslogtreecommitdiff
path: root/std/encoding/yaml/example/dump.ts
blob: 746c3be01bf53d43026ffe3454146069cee976e5 (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"
  })
);