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 sonoma
ventura
monterey
Intel sonoma
ventura
monterey
64-bit linux

Current versions:

stable 3.8.0
head ⚡️ HEAD

Depends on when building from source:

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

Analytics:

Installs (30 days)
shfmt 2,034
shfmt --HEAD 2
Installs on Request (30 days)
shfmt 2,010
shfmt --HEAD 2
Build Errors (30 days)
shfmt 0
Installs (90 days)
shfmt 7,057
shfmt --HEAD 8
Installs on Request (90 days)
shfmt 6,971
shfmt --HEAD 8
Installs (365 days)
shfmt 36,497
shfmt --HEAD 32
Installs on Request (365 days)
shfmt 36,103
shfmt --HEAD 32
Fork me on GitHub