Serve static files over HTTP
npm install serve-here.js -g
const ServeHereServer = require ("serve-here.js");
Code:
const Server = new ServeHereServer ();
Server.Start ();
CLI:
serve-here
Code:
const Server = new ServeHereServer ({
folder: "/my-site", // Default is "./" (Not required)
port: 4000, // Default is 8000 (Not required)
index: "test.html" // Default is "index.html/" (Not required)
});
CLI
serve-here -folder "/my-site" -port 4000 -index "test.html"
Server.Stop ();
1.1.2