yaml
A Dart YAML parser.
View on GitHub ↗Archived
- Stars
- 165
- Forks
- 51
- Last push (UTC)
- Feb 1, 2025
- Project status
- Archived
Original README
English project snapshot. Visit GitHub for the latest content.
[!IMPORTANT]
This repo has moved to https://github.com/dart-lang/tools/tree/main/pkgs/yaml
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));
}
LanguagesDart
Dependencies used
Dependency list 6 items
- collection
^1.15.0 - source_span
^1.8.0 - string_scanner
^1.2.0 - dart_flutter_team_lintsDevelopment
^3.0.0 - pathDevelopment
^1.8.0 - testDevelopment
^1.16.6
How do I choose a repository?
Start with your use case, compare repository activity, and check the original project before adopting it.
- Search by repository name, owner or description, then narrow the results by topic.
- Compare stars, forks and recent pushes. Stars show community interest, not a guarantee of quality.
- Read the README, license and issues on GitHub before using a project.
Sources and maintenance
“A repository is the most basic element of GitHub.”
GitHub Docs — About repositories ↗
- dart-archive/yaml · GitHub ↗
- GitHub Docs — Saving repositories with stars ↗
- Directory maintained by Ducafecat ↗