1.0.7 • Published 9 years ago

light-static-server v1.0.7

Weekly downloads
41
License
-
Repository
github
Last release
9 years ago

a light , flexible and power static server


Install

$ npm install -g light-static-server

Usage

lss

can start server, use the config.json for default option

lss -h

can see the help info

lss --version 

can see the version of lss

lss --port 80 

can start the server at port of 80

lss -o

can start the server, but can't see the dir in brower

中文文档:https://github.com/zjgnlzq/light-static-server/docs

Edit config.json

example

{
	"path": {
		"/test/": "/usr/local/www",    // "/test/" is the url you request in browser, "/usr/local/www" is the dir path on you computer
		"/test-a/": "/usr/local/a/b/c/"
	},
  	"onlyStatic": false, // only serve for file, can't see the dir in browser
  	"port": 7000 // the port of server listen on
}

Report a issue

License

lss is available under the terms of the MIT License.

1.0.7

9 years ago

1.0.6

9 years ago

1.0.5

9 years ago

1.0.4

9 years ago

1.0.3

9 years ago

1.0.2

9 years ago

1.0.1

9 years ago

1.0.0

9 years ago