Clone this repo:
  1. 98a3aab Bump dart-lang/setup-dart from 1.5.1 to 1.6.0 (#154) by dependabot[bot] · 5 weeks ago master
  2. b63372b Bump actions/checkout from 4.1.0 to 4.1.1 (#155) by dependabot[bot] · 5 weeks ago
  3. 9f0d649 Bump dart-lang/setup-dart from 1.5.0 to 1.5.1 (#153) by dependabot[bot] · 9 weeks ago
  4. 8e70ffb Bump actions/checkout from 3.6.0 to 4.1.0 (#152) by dependabot[bot] · 9 weeks ago
  5. ae00187 Bump actions/checkout from 3.5.3 to 3.6.0 (#150) by dependabot[bot] · 3 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));
}