3.0.1 • Published 3 years ago
dentin v3.0.1
(In)dent XML and HTML
All of the pretty-printers I found for XML and HTML didn't work well enough, so I spent way too much time putting this together. It handles DTDs, mixed content, etc. in the way that I prefer. File bugs if you disagree and I'll likely add config options.
Installation
npm install -g dentin
Usage
dentin [files...]
Indent XML or HTML files
Positionals:
files The files to read. To read stdin explicitly, use "-". [default: stdin]
Options:
-i, --ignore Ignore elements with these names, do not word-wrap them
[array]
-o, --output Output file name [string] [default: stdout]
-b, --backup Replace the current file, keeping a backup of the original,
with the given extension. This can be used to process
several files at once into different output files. [string]
-c, --config Read configuration information from this JSON file.
[default: ".dentin.json"]
-d, --doubleQuote Use double quotes for attributes [boolean] [default: false]
-m, --margin Line length for word wrapping [number] [default: 78]
-s, --spaces How many spaces to indent each level. 0 causes left
alignment. -1 strips insignificant whitespace.
[number] [default: 2]
-n, --noVersion Do not output the XML version or HTML doctype prefix
[boolean] [default: false]
--html Process these files as HTML instead of XML
[boolean] [default: determine from file name]
-Q, --fewerQuotes In HTML docs, only use quotes around attribute values that
require them [boolean] [default: false]
-h, --help Show help [boolean]
-V, --version Show version number [boolean]
3.0.1
3 years ago
3.0.0
4 years ago
2.0.2
4 years ago
1.0.0
6 years ago
0.2.6
8 years ago
0.2.4
9 years ago
0.2.3
9 years ago
0.2.2
9 years ago
0.2.1
9 years ago
0.1.15
9 years ago
0.1.14
9 years ago
0.1.13
9 years ago
0.1.12
9 years ago
0.1.11
10 years ago
0.1.10
10 years ago
0.1.9
10 years ago
0.1.8
10 years ago
0.1.7
10 years ago
0.1.6
10 years ago
0.1.5
10 years ago
0.1.4
10 years ago
0.1.3
10 years ago
0.1.2
10 years ago
0.1.1
10 years ago
0.1.0
10 years ago
0.0.10
10 years ago
0.0.9
10 years ago
0.0.8
10 years ago
0.0.7
10 years ago
0.0.6
10 years ago
0.0.5
10 years ago
0.0.4
10 years ago
0.0.3
10 years ago
0.0.2
10 years ago