Skip to content

nouex/static-server

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Description

Static, localhost server with optional public/ dir and port.

Installation

npm install bare-static-server

Usage

port defaults to 5000

const { init } = require("bare-static-server")
const port  = ...,
      public = ...
init({ public: "./www" })

Assuming dir ./www exists and it contains index.txt we may now:

curl http://127.0.0.1:5000/index.txt

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published