pug-beautifier
v0.0.1
Published
Pug(Jade) Beautify CLI Interface
Readme
Pug(was Jade) Beautify CLI tool.
Note : This program depends on pug-beautify module.
Usage
$ pug-beautifier [options] [file]Beautify <file>. If no file is specified,
input is taken from standard input and output to standard output.
Options
-h, --help output usage information
-V, --version output the version number
-s, --fillspace <tab_size> fill <tab_size> spaces rather than tab, default tab.
-d, --omitdiv, omit div tag, default not.
-o,--overwrite, overwrite input file, default stdout.Examples
Beautify foo.jade to stdout:
$ pug-beautifier foo.jadeor
$ cat foo.jade | pug-beautifierBeautify foo.jade and overwrite it:
$ pug-beautifier -o foo.jadeBeautify foo.jade with 4 spaces, omit 'div' tag :
$ pug-beautifier -d -s 4 foo.jadeInstallation
npm install pug-beautifier -gLicense
MIT
