Remove usage of deprecated `onError` argument to `int.parse` and `double.parse`. (#43)

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

A parser for YAML.

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