shfmt is a command-line tool that rewrites shell scripts into a consistent layout. It is aimed at developers and system administrators who maintain Bash, POSIX sh and related shell scripts and want a formatter they can run from a terminal or a build pipeline.
The source code is public on GitHub and released under the BSD-3-Clause license, so it can be read, reused and modified freely. The facts available describe a Windows build distributed through the winget package manager.
Alternatives to shfmt
Products that do a similar job in Developer Tools.
ShellCheck
Static analysis linter for bash and other shell scripts
zx
JavaScript wrapper for writing shell scripts
autocomplete
Command-line autocomplete for shell commands and options
inshellisense
IDE-style autocomplete for the command line
up
Command-line tool for building Linux pipes with a live preview
fzf
Command-line fuzzy finder for lists of files, history and any text
lazygit
Terminal UI for running git commands with keyboard shortcuts
ripgrep
command-line search tool that finds regex matches across directory trees