commit | 8f6a5f71f0d05c6498bf58313e1cabe6264ee4b5 | [log] [tgz] |
---|---|---|
author | Kevin Moore <kevmoo@google.com> | Tue Nov 15 12:23:07 2022 -0800 |
committer | Kevin Moore <kevmoo@google.com> | Tue Nov 15 12:23:07 2022 -0800 |
tree | f7d374580e4daa225abdad7e58dce18611269239 | |
parent | fda5b15692ccfa0feb7793a27fe3829b3d0f77fa [diff] |
blast_repo fixes Dependabot GitHub Action
A parser for YAML.
Use loadYaml
to load a single document, or loadYamlStream
to load a stream of documents. For example:
import 'package:yaml/yaml.dart'; main() { var doc = loadYaml("YAML: YAML Ain't Markup Language"); print(doc['YAML']); }
This library currently doesn't support dumping to YAML. You should use json.encode
from dart:convert
instead:
import 'dart:convert'; import 'package:yaml/yaml.dart'; main() { var doc = loadYaml("YAML: YAML Ain't Markup Language"); print(json.encode(doc)); }