Clone this repo:
  1. 30a5eee Merge pull request #29 from dart-lang/devoncarew-patch-1 by Devon Carew · 5 weeks ago master
  2. dab5d3c Merge pull request #30 from dart-lang/devoncarew-patch-2 by Devon Carew · 5 weeks ago
  3. b7af241 Rename .analysis_options to analysis_options.yaml by Devon Carew · 5 weeks ago devoncarew-patch-2
  4. 9e67348 Update pubspec.yaml by Devon Carew · 5 weeks ago devoncarew-patch-1
  5. fb118ae Fix travis (#28) by Kevin Moore · 5 weeks 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));
}