@nsis/dent
TypeScript icon, indicating that this package has built-in type declarations

0.4.1 • Public • Published

@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

Why defaulting to tabs is good for accessibility

Related

License

This work is licensed under The MIT License

Readme

Keywords

Package Sidebar

Install

npm i @nsis/dent

Weekly Downloads

1

Version

0.4.1

License

MIT

Unpacked Size

6.66 kB

Total Files

6

Last publish

Collaborators

  • idleberg