lite-web-server
The npm package to create simple web server.
This will load files from ./public/
directory if it's not specified.
Documantation
Github Repository
NPM
Simple Example Usage
Install
npm i lite-web-server
Example
This server will load files from ./public/
directory.
var { WebServer } = require("lite-web-server");
var server = new WebServer();
server.start();
If you want to specify the directory to load a file, use the code below.
var { WebServer } = require("lite-web-server");
var server = new WebServer({
dir: "./public_html/"
});
server.start();
License
© chasyumen 2021. Released under the MIT license