1.2.0 • Published 6 years ago

serve-here.js v1.2.0

Weekly downloads
2
License
MIT
Repository
github
Last release
6 years ago

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

1.2.0

6 years ago

1.1.3

7 years ago

1.1.2

7 years ago

1.1.1

7 years ago

1.1.0

7 years ago

1.0.1

7 years ago

1.0.0

7 years ago