Clone this repo:
  1. da4c4d8 Migrate to GitHub Actions (#104) by Alexander Thomas · 34 hours ago master
  2. cca02c9 Add static type to sourceUrl arguments (#98) by Nate Bosch · 9 weeks ago 3.0.0-nullsafety.0
  3. 3dcf123 Delete .test_config (#99) by Kevin Moore · 9 weeks ago
  4. 925c406 Merge pull request #94 from dart-lang/null_safety by Phil Quitslund · 9 weeks ago
  5. 7bf1948 Merge pull request #96 from dart-lang/loader-span-late by Phil Quitslund · 9 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));
}