https://github.com/zhaoqize/easy-server
🏹 随心所欲启动本地服务
https://github.com/zhaoqize/easy-server
commander easy live-server server socket-io
Last synced: 3 months ago
JSON representation
🏹 随心所欲启动本地服务
- Host: GitHub
- URL: https://github.com/zhaoqize/easy-server
- Owner: zhaoqize
- License: mit
- Created: 2018-07-05T10:09:01.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2018-07-11T06:47:17.000Z (almost 7 years ago)
- Last Synced: 2025-02-15T05:15:32.984Z (5 months ago)
- Topics: commander, easy, live-server, server, socket-io
- Language: JavaScript
- Homepage: https://zhaoqize.github.io/easy-server/
- Size: 112 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
[](https://github.com/zhaoqize/easy-server)
[](https://github.com/zhaoqize/easy-rollback/blob/master/LICENSE)
[]()
# easy-server
easy-server### 安装
```js
npm install -g easy-servers
```### 执行
`easy server -h`
```js
Usage: server [options]A Fast Local Server
Options:
-p, --port select port to use, default: PORT env var or 8080
-i, --ignore paths to ignore, default: node_modules, .git, .gitignore, package.json
-f, --file file entry , default: all
-h, --help output usage information
```### 使用
```js
easy server -p 8081 -i .gitignore -f index.html
```### 效果
```shell
Serving ./ at:
http://127.0.0.1:8080
http://192.168.31.171:8080
Ready for changes
Directory docs/README.md has been added
Directory bin/index.js has been added
Directory lib/main.js has been added
Directory lib/main.js has been changeed
```## License
MIT © [zhaoqize]()