commit | 94747aed55de028ef63fe32eaf1b4e036e7c47db | [log] [tgz] |
---|---|---|
author | Kevin Moore <kevmoo@users.noreply.github.com> | Tue Sep 12 16:14:53 2017 -0700 |
committer | GitHub <noreply@github.com> | Tue Sep 12 16:14:53 2017 -0700 |
tree | b6c4995fe9903946f49b6a06e28b9749501ae0f6 | |
parent | e5f64d776bcf9b84caf781b2a4e031fef78165be [diff] |
Travis testing: dev, stable, and oldest supported (#33) * Travis testing: dev, stable, and oldest supported * Require SDK >= 1.23.0 - range we can correctly test on travis
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)); }