1.1.4 • Published 6 years ago

easy-servers v1.1.4

Weekly downloads
-
License
MIT
Repository
-
Last release
6 years ago

npm GitHub license PRs Welcome

easy-server

easy-server

安装

npm install -g easy-servers

执行

easy server -h

  Usage: server [options] <dir>

  A Fast Local Server

  Options:

    -p, --port <number>  select port to use, default: PORT env var or 8080
    -i, --ignore <path>  paths to ignore, default: node_modules, .git, .gitignore, package.json
    -f, --file <path>    file entry , default: all
    -h, --help           output usage information

使用

easy server <dir> -p 8081 -i .gitignore -f index.html

效果

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