Http-server is a simple 0 configuration command line HTTP server, based on NodeJs. If you don't want to write NodeJs Web-server.js repeatedly, you can use this. Install (Global install plus-G): NPM Install Http-ser Ver use: Open command line in the Site Directory input node http-server used in Package.json"Scripts": {
"Start":"http-server-a 0.0.0.0-p 8000",
} parameter:-P port Number (default8080)
-A IP address (default0.0.0.0)
-D displays a list of directories (default'True')
-I display AutoIndex (default'True')
-E or--ext if the default file name extension is not provided (the default'HTML')
-S or--silent suppress log information output
--cors enable Cors via the Access-control-allow-origin header
-O Open the browser after starting the service
-H or--help print List and exit
-C Sets the cache time (seconds) for the Cache-control max-age header, e.g.-C10 forTenSeconds (defaults to'3600'). Disable caching, use-c-1.
A simple 0 Configuration command line HTTP server-http-server (nodeJs)