Pretty YAML is a semi-tolerant and configurable YAML formatter. It is available as a dprint plugin and can also be integrated into Rust applications as a library.
The formatter offers extensive control over indentation, line wrapping, quotation marks, spacing, trailing commas, comments and whitespace. Its underlying YAML parser is also available as a separate Rust library.
This is free and open source software.
Key Features
- Formats YAML documents with consistent, configurable styling.
- Integrates with dprint through a WebAssembly plugin.
- Provides formatter and parser libraries for Rust applications.
- Configurable print width, indentation and line-break style.
- Supports single or double quotation mark preferences.
- Controls spacing around braces, brackets and sequence dashes.
- Offers configurable trailing commas and comment formatting.
- Can place suitable collections on a single line.
- Trims trailing whitespace and unnecessary numeric zeroes.
- Provides configurable prose wrapping.
- Supports directives for excluding selected content from formatting.
Website: github.com/g-plane/pretty_yaml
Support:
Developer: Pig Fang
License: MIT License
Pretty YAML is written in Rust. Learn Rust with our recommended free books and free tutorials.
Related Software
| YAML Code Formatters | |
|---|---|
| libfyaml | Fully-featured YAML 1.2 and JSON parser/writer |
| yam | Little formatter for YAML |
| pretty-yaml | Human-readable YAML-serialized data |
Read our verdict in the software roundup.
Explore our comprehensive directory of recommended free and open source software. Our carefully curated collection spans every major software category.This directory is part of our ongoing series of informative articles for Linux enthusiasts. It features hundreds of detailed reviews, along with open source alternatives to proprietary solutions from major corporations such as Google, Microsoft, Apple, Adobe, IBM, Cisco, Oracle, and Autodesk. You’ll also find interesting projects to try, hardware coverage, free programming books and tutorials, and much more. Discovered a useful open source Linux program that we haven’t covered yet? Let us know by completing this form. |

