NodeJs.Server History

Hide minor edits - Show changes to output - Cancel

May 07, 2014, at 11:52 AM by MichaelPaulukonis -
Changed lines 1-3 from:
[[|Simple HTTP server]]
[[]] - found via [[|StackOverflow request for a simple HTTP server]]

This is dead-simple, and I regret not having this in my toolkit years ago.
Of course, I also regret not having NodeJs in my toolkit years ago, too.

Added lines 9-24:
(:source lang=text:)
usage: http-server [path] [options]

  -p                Port to use [8080]
  -a                Address to use []
  -d                Show directory listings [true]
  -i                Display autoIndex [true]
  -e --ext          Default file extension if none supplied [none]
  -s --silent        Suppress log messages from output
  --cors            Enable CORS via the 'Access-Control-Allow-Origin' header
  -o                Open browser window after staring the server
  -c                Set cache time (in seconds). e.g. -c10 for 10 seconds.
                    To disable caching, use -c-1.
  -h --help          Print this list and exit.
April 26, 2014, at 04:08 PM by MichaelPaulukonis -
Added lines 2-6:

[@npm i -g http-server@]

April 26, 2014, at 03:57 PM by MichaelPaulukonis -
Changed lines 1-9 from:
[[|Simple HTTP server]]
[[|Simple HTTP server]]

!! See Also

!! Category Tags
April 22, 2014, at 01:41 PM by MichaelPaulukonis -
Added line 1:
[[|Simple HTTP server]]