@alsadi/simple_http_server
TypeScript icon, indicating that this package has built-in type declarations

0.0.7 • Public • Published

SimpleHttpServer

A simple HTTP Server with no dependencies for NodeJS using native http module in NodeJS

Usage

First install the package

npm install --save '@alsadi/simple_http_server'

Then use it like this in

import {SimpleHttpServer} from "@alsadi/simple_http_server"
(async function() {
    const server = new SimpleHttpServer(["assets", "index.html", "favico.ico"], "./public");
    server.listen(8080);
})();

Advanced Usage

Readme

Keywords

Package Sidebar

Install

npm i @alsadi/simple_http_server

Weekly Downloads

1

Version

0.0.7

License

Apache-2.0

Unpacked Size

13.3 kB

Total Files

12

Last publish

Collaborators

  • alsadi