Clone this repo:
  1. 1f53857 dartfmt by Kevin Moore · 11 days ago master
  2. fec9433 enable Travis-CI by Kevin Moore · 11 days ago
  3. 1eeed09 Reject duplicate keys. (#22) by Natalie Weizenbaum · 6 months ago 2.1.12
  4. eca8938 Merge pull request #19 from denesalmasi/yaml by Natalie Weizenbaum · 7 months ago 2.1.11
  5. fe1d770 Add pubspec and changelog entries. by Natalie Weizenbaum · 7 months ago

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