hyrious / w7

Serve static html file.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

@hyrious/w7

Serve a folder / file, with auto reload.

Usage

npm i -g @hyrious/w7
w7 --help

  Description
    Serve the pure html, update the browser on change.

  Usage
    $ w7 [entry] [options]

  Options
    -c, --cors       Enable "CORS" headers
    -s, --single     Serve as single-page application
    -q, --quiet      Disable logging to terminal
    -H, --host       Hostname to bind  (default localhost)
    -p, --port       Port to bind  (default 5000)
    -v, --version    Displays current version
    -h, --help       Displays this message

  Examples
    $ w7
    $ w7 index.html
    $ w7 dist
    $ w7 app.html --port 4000
    $ w7 --cors --quiet --open

Alternatives

License

The MIT License.

About

Serve static html file.


Languages

Language:TypeScript 90.6%Language:JavaScript 9.4%