pug-server

0.1.1 • Public • Published

pug-server

A simple zero-configuration command-line http server of pugjs (aka jade)

Installing globally

npm install pug-server -g

Usage

pug-server [path]

[path] defaults to ./

Example

default usage

Use $ pug-server serve files in current folder. if there has index.jade file.

You can easily open http://localhost:3000/index.jade

change views path

Use $ pug-server ./app to serve files in folder app, if there has ./app/index.jade file.

You can easily open http://localhost:3000/index.jade

change port

Use $ PORT=8080 pug-server to serve files in current folder, if there has ./index.jade file.

You can easily open http://localhost:8080/index.jade

Installing as a node app

Usage

Use npm install pug-server --save

let pugServer = require('pug-server')
let server = pugServer('./app')

Package Sidebar

Install

npm i pug-server

Weekly Downloads

1

Version

0.1.1

License

MIT

Last publish

Collaborators

  • pleasurazy