light-static-server

1.0.7 • Public • Published

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.

Package Sidebar

Install

npm i light-static-server

Weekly Downloads

10

Version

1.0.7

License

none

Last publish

Collaborators

  • andy-zu