Clone this repo:
  1. a19ba89 misc: fix test dependency to work with Dart 2 stable (#47) by Kevin Moore · 4 months ago master
  2. b0067c4 chore: set max SDK version to <3.0.0 (#46) by Patrice Chalin · 5 months ago 2.1.15
  3. 70bede6 Remove usage of deprecated `onError` argument to `int.parse` and `double.parse`. (#43) by Lasse R.H. Nielsen · 7 months ago 2.1.14
  4. 32c70a1 Remove upper case constants (#39) by Lasse R.H. Nielsen · 7 months ago
  5. 58872af Don't test Dartium on Travis (#37) by Kevin Moore · 10 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));
}