Clone this repo:
  1. 70bede6 Remove usage of deprecated `onError` argument to `int.parse` and `double.parse`. (#43) by Lasse R.H. Nielsen · 8 weeks ago master 2.1.14
  2. 32c70a1 Remove upper case constants (#39) by Lasse R.H. Nielsen · 9 weeks ago
  3. 58872af Don't test Dartium on Travis (#37) by Kevin Moore · 5 months ago
  4. 8d5ff2c Stop using comment-based generic syntax (#35) by Natalie Weizenbaum · 10 months ago 2.1.13
  5. 89f2660 Remove -dev.infinity in SDK upper constraint by Kevin Moore · 10 months ago

A parser for YAML.

Build Status

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));
}