Skip to content

idleberg/node-dent-cli

Repository files navigation

@nsis/dent-cli

An opinionated code formatter for NSIS scripts

License Version Build

Installation

Node.js

For single-use, use npx to download and run the CLI:

$ npx -y @nsis/dent-cli --help

Or, if you prefer to install the CLI:

$ npm install --global @nsis/dent-cli
$ npx dent --help

Scoop

The 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/dent

Download

As a last resort, you can download pre-compiled binaries for Windows.

Usage

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)

Related

License

This work is licensed under The MIT License

About

An opinionated code formatter for NSIS scripts

Topics

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors