0.4.1 • Published 5 months ago

@nsis/dent v0.4.1

Weekly downloads
-
License
MIT
Repository
github
Last release
5 months ago

@nsis/dent

An opinionated code formatter for NSIS scripts

License Version Build

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

0.4.1

5 months ago

0.4.0

5 months ago

0.3.0

10 months ago

0.3.1

10 months ago

0.2.2

12 months ago

0.2.1

12 months ago

0.2.0

12 months ago

0.1.2

12 months ago

0.1.1

12 months ago

0.1.0

12 months ago