0.4.1 • Published 2 years ago

@nsis/dent v0.4.1

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years 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

2 years ago

0.4.0

2 years ago

0.3.0

2 years ago

0.3.1

2 years ago

0.2.2

2 years ago

0.2.1

2 years ago

0.2.0

2 years ago

0.1.2

2 years ago

0.1.1

2 years ago

0.1.0

2 years ago