0.1.4 • Published 9 years ago

shttp v0.1.4

Weekly downloads
3
License
AGPL
Repository
github
Last release
9 years ago

shttp

a simple http server

  npm install -g shttp
  shttp
  #now the dir you ran the server from gets served as static files
  xdg-open http://localhost:1337

###command line arguments

  -p 1337            #the port to serve on
  --dir=dir          #a relative directory to use as root
  --dir=/path/do/dir #an absolute directory to use as root
  --single           #only serves inlined index.html, redirects all requests to /

###usage examples

  #serve /srv/www/index.html on port 80, all css/js/images inlined
  shttp -p 80 --dir /srv/www/ --single
  #serve all files in current directory on port 80
  shttp -p 80 
  #serve all files in current directory's dist subdir on port 80
  shttp -p 80 --dir dist
0.1.4

9 years ago

0.1.3

9 years ago

0.1.2

9 years ago

0.1.1

9 years ago

0.1.0

9 years ago

0.0.9

9 years ago

0.0.8

9 years ago

0.0.7

9 years ago

0.0.6

9 years ago

0.0.4

9 years ago

0.0.3

9 years ago

0.0.2

9 years ago

0.0.1

9 years ago