yaml 2.2.1

Dart native js
Flutter Android iOS web

A parser for YAML, a human-friendly data serialization standard

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));
}
47
likes
105
pub points
99%
popularity

Publisher

dart.dev

A parser for YAML, a human-friendly data serialization standard

Repository (GitHub)
View/report issues

Documentation

API reference

License

BSD (LICENSE)

Dependencies

charcode, collection, source_span, string_scanner

More

Packages that depend on yaml