Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/wendux/node-http-static-server
Node http server for static files.
https://github.com/wendux/node-http-static-server
Last synced: about 1 month ago
JSON representation
Node http server for static files.
- Host: GitHub
- URL: https://github.com/wendux/node-http-static-server
- Owner: wendux
- Created: 2022-06-22T09:21:49.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2022-06-22T09:25:33.000Z (over 2 years ago)
- Last Synced: 2024-10-08T10:20:30.735Z (about 1 month ago)
- Language: JavaScript
- Size: 7.81 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
# node-http-static-server
A http server for static files. 只需一句命令,便可以快速在任意目录下创建一个http静态文件服务器。
## Get started
### Install
```shell
npm install node-http-static-server -g
```### Usage
```shell
cd mydoc
hs #启动 http,根目录为 mydoc
```### Arguments
Options:
-h, --help Output usage information
-p, --port [number] The port on which the app will be running (defaults to 3000)
-r, --root [value] http server root dir (defaults to ".")
-v, --version Output the version number```shell
hs -p 80 # listening on 80 port
```