Skip to content

escaleno-ltda/pug-beautifier-cli

 
 

Repository files navigation

Pug(was Jade) Beautify CLI tool.

Note : This program depends on pug-beautify module.

Installation

npm i -g pug-beautifier-cli

Usage

$ pug-beautifier [options] [file or glob]

Beautify <file> and overwrite it:

Options

-h, --help                  output usage information
-V, --version               output the version number
-t, --filltab <tab_size>  	fill <tab_size> tabs rather than space, default 2 spaces.
-d, --keepdiv,              keep div tag, default not.

Examples

Beautify foo.pug:

$ pug-beautifier foo.pug

Beautify foo.jade with 4 tabs, keep 'div' tag :

$ pug-beautifier -d -t 4 foo.jade

License

MIT

About

Pub(former jade) beautify CLI

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • HTML 57.3%
  • JavaScript 42.7%