node package manager
Don’t reinvent the wheel. Reuse code within your team. Create a free org »

pugserver

npm licence GitHub tag GitHub release I love badges

Pug Server

Basic pug file server. Ideal for building local prototypes apart from any application. All other files are served statically as they usually would.

installation

npm install -g pugserver

create a folder

+ myfolder/
  - index.pug
  - example.css
  - example.js

usage

pugserver path/to/myfolder

open your browser to http://localhost:8080/index.pug

The path argument is optional. If not present it will default to current directory. You can choose to run your server on another port than 8080, to do so, use the -p flag followed by the port number: pugserver -p 1337