Pretty YAML – semi-tolerant and configurable YAML formatter

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
yamlfmtExtensible command-line tool and Go library for formatting YAML files
libfyamlFully-featured YAML 1.2 and JSON parser/writer
yamlfixOpinionated YAML formatter
pretty-yamlHuman-readable YAML-serialized data
yamLittle formatter for YAML
Pretty YAMLSemi-tolerant and configurable YAML formatter

Read our verdict in the software roundup.


Best Free and Open Source Software Explore our carefully curated directory of recommended free and open source software, covering every major software category.

The directory forms part of our extensive collection of articles for Linux enthusiasts. It includes hundreds of detailed reviews, together with free and open source alternatives to proprietary software from companies such as Google, Microsoft, Apple, Adobe, IBM, Cisco, Oracle, and Autodesk.

LinuxLinks also covers interesting projects worth exploring, Linux-compatible hardware, free programming books and tutorials, and much more.

Know a useful free and open source Linux application that we haven’t covered? Tell us about it using our submission form.
Subscribe

Please read our Comment Policy before commenting.

Notify of
guest
0 Comments
Oldest
Newest Most Voted