@nsis/dent
v0.4.1
Published
An opinionated code formatter for NSIS scripts
Downloads
15
Readme
@nsis/dent
An opinionated code formatter for NSIS scripts
Installation
npm install @nsis/dent
Usage
import { createFormatter } from '@nsis/dent';
const format = createFormatter(/* user options */);
format(`
# Look ma, no indentation
Name "Demo"
Section
Nop
Section
`);
Options
options.endOfLines
Type: "crlf" | "lf"
Default: "crlf"
(Windows), "lf"
(Linux, macOS)
options.indentSize
Type: number
Default: 2
options.trimEmptyLines
Type: boolean
Default: true
options.useTabs
Type: boolean
Default: true
:white_check_mark: Why defaulting to tabs is good for accessibility
Related
License
This work is licensed under The MIT License