Skip to content

ChristoPy/serve-here.js

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

32 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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