Clone this repo:
  1. c98cf8d fix for issue 49 (#79) by Adarsh Maurya · 5 weeks ago master v2.2.1
  2. 45bc88d remove author from pubspec by Kevin Moore · 3 months ago
  3. 62e9f6b Use camelcase for enums (#65) by Nate Bosch · 3 months ago
  4. eeecbc5 Refactor to real enums (#62) by Sahil Bondre · 3 months ago
  5. 305ae2f [doc] Add an example.dart file (#64) by Ayan Banerjee · 3 months 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));
}