Clone this repo:
  1. e5de429 Added style as an optional named parameter for wrap() (#86) by Garett Tok Ern Liang · 6 weeks ago master
  2. 1ed6f28 Switch to Chrome (over FF) in CI (#85) by Kevin Moore · 10 weeks ago
  3. c98cf8d fix for issue 49 (#79) by Adarsh Maurya · 4 months ago v2.2.1
  4. 45bc88d remove author from pubspec by Kevin Moore · 5 months ago
  5. 62e9f6b Use camelcase for enums (#65) by Nate Bosch · 6 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));
}