fmt2i
Indent JSON/XML/YAML files with 2 spaces.
fmt2i -j /path/to/some.json
fmt2i -x /path/to/some.xml
fmt2i -y /path/to/some.yml
Write output to another file.
fmt2i -j /path/to/some.json /path/to/another.json
Overwrite the original file.
fmt2i -y /path/to/some.yml {}