Clone this repo:
  1. fdfb733 Merge pull request #112 from dart-lang/franklinyow-patch-1 by Franklin Yow · 3 weeks ago master
  2. 0373406 Update LICENSE by Franklin Yow · 3 weeks ago
  3. 139d357 Update test-package.yml (#111) by Kevin Moore · 6 weeks ago
  4. b4c4411 prep to release 3.1.0 (#110) by Jacob MacDonald · 8 weeks ago 3.1.0
  5. 62fc538 Drop dependency on `package:charcode`. (#109) by Lasse R.H. Nielsen · 8 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));
}