html-cli
Pretty print html
Last updated 4 years ago by marionebl .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install html-cli 
SYNC missed versions from official npm registry.

html-cli stability

???? Pretty print html

stability

npm version

Installation

npm install -g html-cli

Usage

❯ html

  Pretty print html

  Usage
    $ html <input> [flags]

  Options
    --e4x, --jsx, -x              Pass through JSX/E4X [false]
    --editorconfig, -c            Use .editorconfig for options [false]
    --end-with-newline, -n        Ensure newline at file end [false]
    --eol, -e                     Carriage return character ["\n"]
    --indent-character, -i        Indentation character [" "]
    --indent-level, -l            Initial indentation level [0]
    --indent-size, -s             Indentation size [4]
    --max-preserve-newlines, -m   Count of newlines to preserve per chunk [10]
    --preserve-newlines, -p       Preserve newlines [true]

  Examples
    $ html index.html # overwrites in place

  	$ html docs/**/*.html # overwrites in place

    $ echo "<span>html</span>" | html
    <span>
      html
    </span>

    $ echo "<span>html</span>" > index.html && html < index.html
    <span>
      html
    </span>

License

(c) 2016 Mario Nebl and contributors

(c) 2014-2015 Max Ogden and contributors

Related

This is based on the awesome work of other people:


Current Tags

  • 1.0.0                                ...           latest (4 years ago)

1 Versions

  • 1.0.0                                ...           4 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 1
Dependencies (6)
Dev Dependencies (1)
  • xo ^0.17.1
Dependents (0)
None

Copyright 2014 - 2017 © taobao.org |