Clone this repo:
  1. 8d5ff2c Stop using comment-based generic syntax (#35) by Natalie Weizenbaum · 4 weeks ago master 2.1.13
  2. 89f2660 Remove -dev.infinity in SDK upper constraint by Kevin Moore · 5 weeks ago
  3. 94747ae Travis testing: dev, stable, and oldest supported (#33) by Kevin Moore · 6 weeks ago
  4. e5f64d7 Update README.md (#32) by Devon Carew · 6 weeks ago
  5. 30a5eee Merge pull request #29 from dart-lang/devoncarew-patch-1 by Devon Carew · 3 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));
}