Clone this repo:
  1. 0b9041d blast_repo fixes (#146) by Devon Carew · 11 days ago master
  2. af3d8cd Uncomment some tests (#145) by Nate Bosch · 3 weeks ago
  3. 1f39ffe Bump actions/checkout from 3.5.0 to 3.5.2 (#142) by dependabot[bot] · 4 weeks ago
  4. 54e8284 Prepare release with topics (#144) by Jonas Finnemann Jensen · 4 weeks ago 3.1.2
  5. 56dfaf4 Bump dart-lang/setup-dart from 1.4.0 to 1.5.0 (#140) by dependabot[bot] · 9 weeks ago

Build Status Pub Package package publisher

A parser for YAML.

Usage

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));
}