0.1.4 • Published 10 years ago

shttp v0.1.4

Weekly downloads
3
License
AGPL
Repository
github
Last release
10 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

10 years ago

0.1.3

10 years ago

0.1.2

10 years ago

0.1.1

10 years ago

0.1.0

10 years ago

0.0.9

10 years ago

0.0.8

10 years ago

0.0.7

10 years ago

0.0.6

10 years ago

0.0.4

10 years ago

0.0.3

10 years ago

0.0.2

10 years ago

0.0.1

10 years ago