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