Skip to content
A static web server
JavaScript HTML
Find file
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
bin
test
.gitignore
.travis.yml
CHANGELOG
README.md
help.txt
index.js
package.json

README.md

w3

A static web server that is easy to install and easy to run.

It also comes with pushState support so any non asset request will return index.html.

Build Status

Install

npm install w3 -g

Usage

w3

or

w3 [port]

options

Specify target root directory

--directory [dir]

w3 --directory www

Enable pushstate

--pushstate

w3 --pushstate

Better logging

Thu Mar 06 2014 19:51:08 GMT-0500 (EST) - REQUESTED.../index.html
request: 22ms
-------------------------------------------------
Thu Mar 06 2014 19:51:08 GMT-0500 (EST) - REQUESTED.../css/bootstrap.css
request: 10ms
-------------------------------------------------
Thu Mar 06 2014 19:51:08 GMT-0500 (EST) - REQUESTED.../bundle.js
request: 25ms
-------------------------------------------------
Thu Mar 06 2014 19:51:17 GMT-0500 (EST) - REQUESTED.../index.html
request: 2ms
-------------------------------------------------
Thu Mar 06 2014 19:51:17 GMT-0500 (EST) - REQUESTED.../css/bootstrap.css
request: 2ms
-------------------------------------------------
Thu Mar 06 2014 19:51:17 GMT-0500 (EST) - REQUESTED.../bundle.js
request: 10ms

Requirements

NodeJs

Thanks

@mikeal for filed

@nodejs community

Contributions

Send Pull Requests

LICENSE

MIT

Contributors

  • Tom Wilson (@twilson63)
  • @nicogranelli
Something went wrong with that request. Please try again.