lenz-connect

1.0.2 • Public • Published

随启随用的静态文件服务器(包含sass解析)

随时随地将你的当前目录变成一个静态文件服务器的根目录包含sass解析。 (改自anywhere)

Installation

Install it as a command line tool via npm -g.

npm install lenz-server -g

Execution

$ server
// or with port
$ server -p 8000
// or start it but silent(don't open browser)
$ server -s
// or with hostname
$ server -h localhost -p 8888
// or with folder
$ server -d ~/git/server
// or enable html5 history
$ server -f /index.html

Help

$ server --help
Usage:
  server --help // print help information
  server // 8000 as default port, current folder as root
  server 8888 // 8888 as port
  server -p 8989 // 8989 as port
  server -s // don't open browser
  server -h localhost // localhost as hostname
  server -d /home // /home as root
  server -f /index.html  // Enable html5 history,the index is /index.html

Visit

http://localhost:8000

执行命令后,默认浏览器将为您自动打开主页。

License

The MIT license.

Package Sidebar

Install

npm i lenz-connect

Weekly Downloads

1

Version

1.0.2

License

MIT

Unpacked Size

9.07 kB

Total Files

6

Last publish

Collaborators

  • zhanglizhao