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

Bottle JSON API: /api/bottle/shfmt.json

Formula code: shfmt.rb on GitHub

Bottle (binary package) installation support provided for:

Intel monterey
big sur
catalina
64-bit linux
Apple Silicon monterey
big sur

Current versions:

stable 3.4.2
head ⚡️ HEAD

Depends on when building from source:

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

Analytics (macOS):

Installs (30 days)
shfmt 3,370
shfmt --HEAD 2
Installs on Request (30 days)
shfmt 3,043
shfmt --HEAD 2
Build Errors (30 days)
shfmt 0
Installs (90 days)
shfmt 8,680
shfmt --HEAD 5
Installs on Request (90 days)
shfmt 7,848
shfmt --HEAD 5
Installs (365 days)
shfmt 29,658
shfmt --HEAD 21
Installs on Request (365 days)
shfmt 26,800
shfmt --HEAD 21

Analytics (Linux):

Installs (30 days)
shfmt 291
Installs on Request (30 days)
shfmt 268
Build Errors (30 days)
shfmt 0
Installs (90 days)
shfmt 614
Installs on Request (90 days)
shfmt 547
Installs (365 days)
shfmt 2,579
Installs on Request (365 days)
shfmt 2,335
Fork me on GitHub