yamlfix

YAML formatter that preserves comments and structure

brewmacoslinux
Try with needOr install directly
Source

About

Simple and configurable YAML formatter that keeps comments

Commands

yamlfix

Examples

Format a YAML file in place$ yamlfix config.yaml
Format and output to stdout without modifying original$ yamlfix --safe config.yaml
Format all YAML files in a directory recursively$ yamlfix --recursive .