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