Clone this repo:
  1. 1ee508c Move to pkg:lints (#120) by Kevin Moore · 3 months ago master
  2. ad0779d Merge pull request #118 from jonasfj/cleanup-license by Jonas Finnemann Jensen · 4 months ago
  3. 3bb811f Simplify licensing by Jonas Finnemann Jensen · 4 months ago
  4. 2af4487 Merge pull request #115 from scheglov/aa-fix-HintCode.UNNECESSARY_TYPE_CHECK_TRUE by Konstantin Scheglov · 5 months ago
  5. 804fec9 Fix pre-existing HintCode.UNNECESSARY_TYPE_CHECK_TRUE by Konstantin Shcheglov · 5 months ago

A parser for YAML.

Pub Package Build Status

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