3.0.1 • Published 2 years ago

dentin v3.0.1

Weekly downloads
1
License
BSD-2-Clause
Repository
github
Last release
2 years ago

(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]

Tests codecov

3.0.1

2 years ago

3.0.0

3 years ago

2.0.2

3 years ago

1.0.0

5 years ago

0.2.6

7 years ago

0.2.4

8 years ago

0.2.3

8 years ago

0.2.2

8 years ago

0.2.1

8 years ago

0.1.15

8 years ago

0.1.14

8 years ago

0.1.13

8 years ago

0.1.12

8 years ago

0.1.11

9 years ago

0.1.10

9 years ago

0.1.9

9 years ago

0.1.8

9 years ago

0.1.7

9 years ago

0.1.6

9 years ago

0.1.5

9 years ago

0.1.4

9 years ago

0.1.3

9 years ago

0.1.2

9 years ago

0.1.1

9 years ago

0.1.0

9 years ago

0.0.10

9 years ago

0.0.9

9 years ago

0.0.8

9 years ago

0.0.7

9 years ago

0.0.6

9 years ago

0.0.5

9 years ago

0.0.4

9 years ago

0.0.3

9 years ago

0.0.2

9 years ago