Update pubspec.yaml
1 file changed
tree: ae7c2d25d9363b2bbd876ba7ebc573d70f562142
  1. .analysis_options
  2. .gitignore
  3. .test_config
  4. .travis.yml
  5. CHANGELOG.md
  6. LICENSE
  7. README.md
  8. benchmark/
  9. codereview.settings
  10. lib/
  11. libyaml-license.txt
  12. pubspec.yaml
  13. test/
README.md

A parser for YAML.

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