shfmt

Install command:
brew install shfmt

Autoformat shell script source code

https://github.com/mvdan/sh

License: BSD-3-Clause

Formula JSON API: /api/formula/shfmt.json

Formula code: shfmt.rb on GitHub

Bottle (binary package) installation support provided for:

Apple Silicon sequoia
sonoma
ventura
Intel sonoma
ventura
64-bit linux

Current versions:

stable 3.10.0
head ⚡️ HEAD

Depends on when building from source:

go 1.23.5 Open source programming language to build simple/reliable/efficient software
scdoc 1.11.3 Small man page generator

Analytics:

Installs (30 days)
shfmt 2,553
shfmt --HEAD 1
Installs on Request (30 days)
shfmt 2,546
shfmt --HEAD 1
Build Errors (30 days)
shfmt 1
Installs (90 days)
shfmt 11,077
shfmt --HEAD 18
Installs on Request (90 days)
shfmt 10,991
shfmt --HEAD 18
Installs (365 days)
shfmt 39,688
shfmt --HEAD 43
Installs on Request (365 days)
shfmt 39,291
shfmt --HEAD 43
Fork me on GitHub