Clone this repo:
  1. 62e9f6b Use camelcase for enums (#65) by Nate Bosch · 2 days ago master
  2. eeecbc5 Refactor to real enums (#62) by Sahil Bondre · 3 days ago
  3. 305ae2f [doc] Add an example.dart file (#64) by Ayan Banerjee · 4 days ago
  4. 2cf77f8 remove unused field from private class (#60) by Kevin Moore · 6 weeks ago
  5. 426af5d Update min SDK to 2.4 (#59) by Kevin Moore · 7 weeks ago

A parser for YAML.

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