Description
Reads and writes YAML while preserving details such as comments, flow style, and key order. It is useful for tools that edit configuration files without destroying the formatting humans expect to keep.
Developers use it as a library in configuration editors, automation, and migration scripts. YAML can contain surprising structures, so validate input schemas and be careful when rewriting user-managed configuration files.