https://github.com/idleberg/node-dent-cli
An opinionated code formatter for NSIS scripts
https://github.com/idleberg/node-dent-cli
code-beautifier code-formatter nsis nsis-formatter
Last synced: 21 days ago
JSON representation
An opinionated code formatter for NSIS scripts
- Host: GitHub
- URL: https://github.com/idleberg/node-dent-cli
- Owner: idleberg
- License: mit
- Created: 2023-05-22T20:41:18.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2026-05-17T07:02:37.000Z (27 days ago)
- Last Synced: 2026-05-17T08:40:39.634Z (27 days ago)
- Topics: code-beautifier, code-formatter, nsis, nsis-formatter
- Language: TypeScript
- Homepage: https://www.npmjs.org/package/@nsis/dent-cli
- Size: 631 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# @nsis/dent-cli
> An opinionated code formatter for NSIS scripts
[](https://github.com/idleberg/node-dent-cli/blob/main/LICENSE)
[](https://www.npmjs.org/package/@nsis/dent-cli)
[](https://github.com/idleberg/node-dent-cli/actions)
## Installation
### Node.js
For single-use, use `npx` to download and run the CLI:
```sh
$ npx -y @nsis/dent-cli --help
```
Or, if you prefer to install the CLI:
```sh
$ npm install --global @nsis/dent-cli
$ npx dent --help
```
### Scoop
The CLI is available to users of the [Scoop](https://scoop.sh/) package manager.
```powershell
# Add the bucket
scoop bucket add nsis https://github.com/NSIS-Dev/scoop-nsis
# Install dent
scoop install nsis/dent
```
### Download
As a last resort, you can download [pre-compiled binaries](https://github.com/idleberg/node-dent-cli/releases/latest) for Windows.
## Usage
The CLI exposes two sub-commands:
- `dent format` — formats NSIS scripts
- `dent check` — checks if a script needs formatting
```
Usage: dent [options] [command]
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
Commands:
format [options] [file...] format NSIS scripts
check [options] [file...] check whether NSIS scripts are formatted (exits non-zero on drift)
```
Run `dent --help` to list sub-commands, or `dent --help` for command-specific options.
## Related
- [dent](https://www.npmjs.com/package/@nsis/dent)
## License
This work is licensed under [The MIT License](LICENSE)