Clone this repo:
  1. fda5b15 Merge pull request #127 from dart-lang/rev_3.1.1 by Devon Carew · 5 months ago master 3.1.1
  2. abc906d prep for publishing 3.1.1 by Devon Carew · 5 months ago rev_3.1.1
  3. 0971c06 Merge pull request #126 from dart-lang/devoncarew-patch-1 by Devon Carew · 5 months ago
  4. fc7e354 Update pubspec.yaml by Devon Carew · 5 months ago devoncarew-patch-1
  5. 1ee508c Move to pkg:lints (#120) by Kevin Moore · 12 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));
}