commit | 7018ac880bff5a6c49370408171742e8c30f0700 | [log] [tgz] |
---|---|---|
author | Kevin Moore <kevmoo@users.noreply.github.com> | Thu Jun 20 11:10:42 2024 -0700 |
committer | GitHub <noreply@github.com> | Thu Jun 20 11:10:42 2024 -0700 |
tree | ab17abe891a23ae59853e520e641c8f14e51999a | |
parent | 7873b3fb9f16ec83bc7778fed58615fa91f1f042 [diff] |
blast_repo fixes (#166) auto-publish, github-actions, no-response
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)); }