$ npm install -g staticfileserver
The quickest way to get started web static file server as shown below:
command:
$ fileServer ./ 9000
This generator can also be further configured with the following command line flags.
-h, --help output usage information
-V, --version output the version number
-p, --port set port=? (defaults 9090)
-d, --dir the file directory of server started, default root directory: /