commit | c98cf8dd352b763ebe075e5a13258789c740dafd | [log] [tgz] |
---|---|---|
author | Adarsh Maurya <adarsh.maurya.2699@gmail.com> | Mon Apr 27 23:41:49 2020 +0530 |
committer | GitHub <noreply@github.com> | Mon Apr 27 11:11:49 2020 -0700 |
tree | 24a5bc1ca6ac4389fc79cecab320b62e1135fab0 | |
parent | 45bc88da2fd9a47b2f6960638206041e9c1c2469 [diff] |
fix for issue 49 (#79) Fixes the span for null nodes in block lists.
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)); }