The project is in a healthy, maintained state
sorts yaml
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
 Dependencies

Runtime

 Project Readme

dorian-sort-yaml

Recursively sort YAML mapping keys.

Install

gem install dorian-sort-yaml

Also included in the aggregate gem:

gem install dorian

Usage

sort-yaml [yaml ...] [file ...]

Run sort-yaml -h for generated option details and sort-yaml -v for the installed version.

Notes

  • Reads YAML from arguments, files, or stdin and prints normalized YAML.

Examples

Sort a locale file

sort-yaml config/locales/en.yml