Skip to content

amitgupta15/minimal-http-server

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

minimal-http-server

Simple http server built for static files built in Node.js without any framework.

Usage

Import the server in a Node project

const server = require('./minimal-http-server');

Start the server by calling init() method server.init()

This will start the server on port 3000.

Alternatively, you can pass the port and hostname to the init() method.

server.init(4000, 'localhost');

About

Minimal HTTP Server for static files. Runs in Node.js

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published