Clone this repo:
  1. 5a1c4be Bump actions/checkout from 4.1.1 to 4.1.2 (#160) by dependabot[bot] · 2 weeks ago master
  2. e598443 Bump dart-lang/setup-dart from 1.6.0 to 1.6.2 (#157) by dependabot[bot] · 3 months ago
  3. 509fd72 update lints, require Dart 3.0 (#156) by Kevin Moore · 4 months ago
  4. 98a3aab Bump dart-lang/setup-dart from 1.5.1 to 1.6.0 (#154) by dependabot[bot] · 6 months ago
  5. b63372b Bump actions/checkout from 4.1.0 to 4.1.1 (#155) by dependabot[bot] · 6 months 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));
}