cloudhead/node-static — pull request #65 by aaronj1335 (2012-08-25 23:11:52+00:00)
Title: added command line interface

this PR adds a command line interface that allows similar functionality to `python -m SimpleHTTPServer`:

# serve up the current directory
$ static
serving "." at http://127.0.0.1:8080

# serve up a different directory
$ static public
serving "public" at http://127.0.0.1:8080

# specify additional headers (this one is useful for development)
$ static -H '{"Cache-Control": "no-cache, must-revaliate"}'
serving "." at http://127.0.0.1:8080

# set cache control max age
$ static -c 7200
serving "." at http://127.0.0.1:8080

# show help message, including all options
$ static -h