hserve
v0.1.2
Published
easy http server
Downloads
6
Readme
handyServer
install
npm i -g hserve
usage
easily server static files
- cd to the target folder
- run
hserve
in this folder
server static files
run
hserve serve [options]
in this folder. By default, it works exactly the same as running thehserve
command directly.options
|option|alias|need args|desc|default| |---|---|---|---|---| |--port|-p|True|Set port of hserve|3000| |--dir|-d|True|Set the directory of the service, support relative and absolute paths|$PWD| |--api|-a|True|Set api-url of static file service|/static|