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