FLUTTER ECOSYSTEM

yaml_edit

A library for YAML manipulation with comment and whitespace preservation.

Latest version
2.2.4
30-day downloads
8.9M
Likes
50
Pub points
160

Package Overview

Package selection guidance compiled from public package information, community data, and project usage.

Overview

A Dart library designed for manipulating YAML files while preserving comments, whitespace, and formatting. It enables safe editing of YAML documents without altering their original structure or metadata. Ideal for configuration files, build scripts, and tools requiring precise YAML modifications. The package supports reading, modifying, and writing YAML with full fidelity to the source layout.

Use cases
  • Editing configuration files
  • Preserving comments in YAML
  • Updating build scripts
  • Maintaining YAML formatting
  • Automating YAML transformations
  • Integrating with CI/CD pipelines
Key features
  • Comment preservation
  • Whitespace retention
  • Safe YAML modification
  • Support for complex YAML structures
  • Easy integration with Flutter apps
  • Read-write YAML with fidelity
Suitable for
  • Developers working with YAML configs
  • Tools needing structured YAML edits
  • CI/CD automation scripts
  • Code generation utilities
  • Build system integrators
Considerations
  • Requires careful handling of nested structures
  • Not intended for parsing arbitrary YAML
  • Best suited for known schema inputs
  • Limited error reporting for malformed YAML
  • May not support all edge cases in complex YAML
Supported platformsAndroidiOSWebmacOSWindowsLinux

Install package

flutter pub add yaml_edit

Categories

Dependencies

Dependency list 4 items

Source repository

Related projects