Sign Up for Free

RunKit +

Try any Node.js package right in your browser

This is a playground to test code. It runs a full Node.js environment and already has all of npm’s 400,000 packages pre-installed, including pug-cli with all npm packages installed. Try it out:

var pugCli = require("pug-cli")

This service is provided by RunKit and is not affiliated with npm, Inc or the package authors.

pug-cli v0.0.0

Jade's CLI interface


Jade's CLI interface

Build Status Dependency Status NPM version


$ jade [options] [dir|file ...]

Render <file>s and all files in <dir>s. If no files are specified, input is taken from standard input and output to standard output.


-h, --help             output usage information
-V, --version          output the version number
-O, --obj <str|path>   JSON/JavaScript options object or file
-o, --out <dir>        output the rendered HTML or compiled JavaScript to
-p, --path <path>      filename used to resolve includes
-P, --pretty           compile pretty HTML output
-c, --client           compile function for client-side runtime.js
-n, --name <str>       the name of the compiled template (requires --client)
-D, --no-debug         compile without debugging (smaller functions)
-w, --watch            watch files for changes and automatically re-render
-E, --extension <ext>  specify the output file extension
-s, --silent           do not output logs
--name-after-file      name the template after the last section of the file
                       path (requires --client and overriden by --name)
--doctype <str>        specify the doctype on the command line (useful if it
                       is not specified by the template)


Render all files in the templates directory:

$ jade templates

Create {foo,bar}.html:

$ jade {foo,bar}.jade

Using jade over standard input and output streams:

$ jade < my.jade > my.html
$ echo "h1 Jade!" | jade

Render all files in foo and bar directories to /tmp:

$ jade foo bar --out /tmp


npm install jade-cli -g




RunKit is a free, in-browser JavaScript dev environment for prototyping Node.js code, with every npm package installed. Sign up to share your code.
Sign Up for Free