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.5.1
head ⚡️ HEAD

Depends on when building from source:

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

Analytics (macOS):

Installs (30 days)
shfmt 2,856
shfmt --HEAD 1
Installs on Request (30 days)
shfmt 2,601
shfmt --HEAD 1
Build Errors (30 days)
shfmt 0
Installs (90 days)
shfmt 9,254
shfmt --HEAD 4
Installs on Request (90 days)
shfmt 8,431
shfmt --HEAD 4
Installs (365 days)
shfmt 33,688
shfmt --HEAD 16
Installs on Request (365 days)
shfmt 30,696
shfmt --HEAD 16

Analytics (Linux):

Installs (30 days)
shfmt 742
Installs on Request (30 days)
shfmt 720
Build Errors (30 days)
shfmt 0
Installs (90 days)
shfmt 1,483
Installs on Request (90 days)
shfmt 1,413
Installs (365 days)
shfmt 3,129
Installs on Request (365 days)
shfmt 2,869
Fork me on GitHub