CLI tool for sindresorhus/sort-keys
- Alphabetize any JSON file quickly for easier organization
- Can be used as a way to sort a Swagger/OpenAPI document
$ sort-keys <source>[ <destination>]
-d, --deep Deep sort all objects
<source> Source JSON file
<destination> (Optional) Destination file location. Will overwrite source if not provided.
Sort all keys in a JSON file
$ sort-keys example.json --deep