yaml_edit 2.2.2 copy "yaml_edit: ^2.2.2" to clipboard
yaml_edit: ^2.2.2 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);
}
38
likes
160
points
2.75M
downloads

Publisher

verified publishertools.dart.dev

Weekly Downloads

A library for YAML manipulation with comment and whitespace preservation.

Repository (GitHub)
View/report issues
Contributing

Topics

#yaml

Documentation

API reference

License

BSD-3-Clause (license)

Dependencies

collection, meta, source_span, yaml

More

Packages that depend on yaml_edit