@scaratek/server
v1.0.0
Published
Simple Express Server
Downloads
1
Readme
Server
Simple Express Server
Example
const Server = require("@scaratek/server"); // Imports the Module
const host = "0.0.0.0"; // Host
const port = 3000; // Port
const dir = "public"; // Directory to Serve
const route = "/" // Route on Server
Server.Route(dir, route); // Routes the Directory
Server.Serve(host, port); // Runs the Server
Documentation
Server.Route(*directory*, *route*)
- Will Serve a Directory to a RouteServer.Serve(*host*, *port*)
- Will Start a Server