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 ventura
monterey
big sur
catalina
64-bit linux
Apple Silicon ventura
monterey
big sur

Current versions:

stable 3.5.1
head ⚡️ HEAD

Depends on when building from source:

go 1.19.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 1,122
Installs on Request (30 days)
shfmt 1,043
Build Errors (30 days)
shfmt 1
Installs (90 days)
shfmt 3,659
Installs on Request (90 days)
shfmt 3,383
Installs (365 days)
shfmt 26,965
shfmt --HEAD 8
Installs on Request (365 days)
shfmt 24,602
shfmt --HEAD 8

Analytics (Linux):

Installs (30 days)
shfmt 330
Installs on Request (30 days)
shfmt 319
Build Errors (30 days)
shfmt 0
Installs (90 days)
shfmt 963
Installs on Request (90 days)
shfmt 929
Installs (365 days)
shfmt 4,743
Installs on Request (365 days)
shfmt 4,529
Fork me on GitHub