yaml_edit 2.2.1 copy "yaml_edit: ^2.2.1" to clipboard
yaml_edit: ^2.2.1 copied to clipboard

A library for YAML manipulation with comment and whitespace preservation.

example/example.dart

import 'package:yaml_edit/yaml_edit.dart';

void main() {
  final doc = YamlEditor('''
- 0 # comment 0
- 1 # comment 1
- 2 # comment 2
''');
  doc.remove([1]);

  print(doc);
}
30
likes
140
pub points
99%
popularity

Publisher

verified publishertools.dart.dev

A library for YAML manipulation with comment and whitespace preservation.

Repository (GitHub)
View/report issues

Topics

#yaml

Documentation

API reference

License

BSD-3-Clause (LICENSE)

Dependencies

collection, meta, source_span, yaml

More

Packages that depend on yaml_edit