rserv
v1.1.3
Published
Dev server with live reload
Downloads
7
Readme
rserv
Minimal static file server with automating browser reload
Install
Global
sudo npm i -g rserv
Local
npm i rserv --save-dev
Usage
NPM
configure package.json
"scripts": {
"start": "node rserv"
}
start
npm run start
Node
var rserv = require('rserv');
rserv({
root: 'dest',
port: '8080'
});
Command Line (Must be installed gobally)
rserv
Options
rserv --help
Usage: rserv [options]
Options:
-h, --help output usage information
-V, --version output the version number
-t, --timeout [type] timeout [250]
-p, --port [type] port [3000]
-r, --root [type] root directory [.] (current directory)