commit | ffcbbc22884f590663ec451f48fd8388ba7c49f4 | [log] [tgz] |
---|---|---|
author | Jonas Finnemann Jensen <jonasfj@google.com> | Wed Sep 22 13:54:32 2021 +0200 |
committer | GitHub <noreply@github.com> | Wed Sep 22 13:54:32 2021 +0200 |
tree | e0d977a4815d425b5260685db6f14d9c79c1da5b | |
parent | a4a66a1926de6e857e10573759d8ea398aa785d8 [diff] |
Re-license under BSD as used by the Dart project. (#3)
A library for YAML manipulation while preserving comments.
A simple usage example:
import 'package:yaml_edit/yaml_edit.dart'; void main() { final yamlEditor = YamlEditor('{YAML: YAML}'); yamlEditor.assign(['YAML'], "YAML Ain't Markup Language"); print(yamlEditor); // Expected output: // {YAML: YAML Ain't Markup Language} }
Testing is done in two strategies: Unit testing (/test/editor_test.dart
) and Golden testing (/test/golden_test.dart
). More information on Golden testing and the input/output format can be found at /test/testdata/README.md
.
These tests are automatically run with pub run test
.