Skip to content

Latest commit

 

History

History
53 lines (39 loc) · 712 Bytes

README.md

File metadata and controls

53 lines (39 loc) · 712 Bytes

serve-here.js

Serve static files over HTTP

Installation

npm install serve-here.js -g

Importing

const ServeHereServer = require ("serve-here.js");

Running

Code:

const Server = new ServeHereServer ();
Server.Start ();

CLI:

serve-here

Configuring

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"

Stoping

Server.Stop ();

Version

1.1.2