frontserv
v0.2.1
Published
Simple static server for frontend
Downloads
2
Readme
frontserv
Simple static http-server for frontend.
Installation
$ npm install frontserv -g
Quick Start
$ frontserv
Usage
Root dir (--dir, -d)
$ frontserv --dir /home/user/www-data
Default: current dir
Host (--host, -H)
$ frontserv --host 192.168.1.34
Default: localhost
Port (--port, -p)
$ frontserv --port 8080
Default: 8000
Autoindex (--autoindex)
Show list of files in the directory.
$ frontserv --autoindex
Version (--version, -v)
$ frontserv --version
Help (--help, -h)
$ frontserv --help
Tests
To run the test suite, first install the dependencies, then run npm test
:
$ npm install
$ npm test