treefmt

One CLI to format your entire code tree with multiple formatters

brewmacoslinux
Try with needOr install directly
Source

About

One CLI to format the code tree

Commands

treefmt

Examples

Format all files in the current directory tree$ treefmt
Format specific files or directories$ treefmt src/ README.md
Check formatting without making changes$ treefmt --check