An opinionated code formatter for NSIS scripts
For single-use, use npx to download and run the CLI:
$ npx -y @nsis/dent-cli --helpOr, if you prefer to install the CLI:
$ npm install --global @nsis/dent-cli
$ npx dent --helpThe CLI is available to users of the Scoop package manager.
# Add the bucket
scoop bucket add nsis https://github.com/NSIS-Dev/scoop-nsis
# Install dent
scoop install nsis/dentAs a last resort, you can download pre-compiled binaries for Windows.
As an opinionated formatter, there are but a few options you can tweak. Run dent --help for a list of all options.
Usage: dent [options] <file...>
CLI tool to format NSIS scripts
Options:
-V, --version output the version number
-D, --debug prints additional debug messages (default: false)
-h, --help display help for command
Formatting Options
-e, --eol <"crlf"|"lf"> control how line-breaks are represented (default: "lf")
-i, --indent-size <number> number of units per indentation level (default: 2)
-s, --use-spaces indent with spaces instead of tabs (default: false)
-t, --trim trim empty lines (default: true)
-w, --write edit files in-place (default: false)
This work is licensed under The MIT License