lss

light-static-server

light static server

Showing:

Popularity

Downloads/wk

2

GitHub Stars

2

Maintenance

Last Commit

6yrs ago

Contributors

2

Package

Dependencies

5

License

Type Definitions

Tree-Shakeable

No?

Categories

Readme

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.

Rate & Review

Great Documentation0
Easy to Use0
Performant0
Highly Customizable0
Bleeding Edge0
Responsive Maintainers0
Poor Documentation0
Hard to Use0
Slow0
Buggy0
Abandoned0
Unwelcoming Community0
100