Command line tool to generate .pug files from html

Installation

Download node at nodejs.org and install it, if you haven't already.

npm install pugit --save

Usage

A full HTML body example.

pugit test.html

Bodyless (no html or head tags) output.

pugit test.html --bodyless

Bodyless with 4 spaces instead of 2.

pugit test.html --bodyless --spaces 4

New output filename.

pugit test.html --output newoutput.html

New output filename in a new directory.

pugit test.html --output newdirectory/newoutput.html

Dependencies

colors: get colors in your node.js console

command-line-args: A mature, feature-complete library to parse command-line options.

command-line-usage: Generates command-line usage information

html2jade: HTML to Jade conversion tool

shelljs: Portable Unix shell commands for Node.js

License

ISC