You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

super-simple-web-server

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

super-simple-web-server

A super simple node-express web server with https option for when you quickly need to serve some static files. Package includes self-signed certificates. Don't use this for production.

1.1.0
Source
npmnpm
Version published
Weekly downloads
48K
7.08%
Maintainers
1
Weekly downloads
 
Created
Source

super-simple-web-server

Serve static files on localhost with http & https.

TO INSTALL

npm install super-simple-web-server

or

Clone repo and run npm install in the root directory.

TO RUN

npm start [</path/to/web/root>]

###Default path Default path is your current working directory. Override by passing an optional path to your desired web root directory.

###Default ports Default ports are 3000 (http) and 3001 (https). These can be changed in index.js.

###Default IP The default IP 127.0.0.1 which should convieniently map to localhost.

Pro tip: Setting USE_LOCALHOST = false in index.js will instead scan for existing bound IP addresses on your machine via os.networkInterfaces(). The last available will be used.

About the self-signed certifictes

Fictious self-signed certs are provided for your development convienience. They will exprire on June 6 2028. Obviously -- you don't want to use these for anything other than private testing.

See ./certs/ for more info...

FAQs

Package last updated on 22 Sep 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts