New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

simplehttpserver

Package Overview
Dependencies
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

simplehttpserver

Simple HTTP Server for static files. Intended as testing and development tool

latest
Source
npmnpm
Version
0.3.0
Version published
Weekly downloads
1.1K
15.08%
Maintainers
1
Weekly downloads
 
Created
Source

simplehttpserver: Simple HTTP Server

'simpehttpserver' is an simple imitation of Python's SimpleHTTPServer and is intended for testing, development and debugging purposes

Install globally

Install using npm

  npm install simplehttpserver -g

Usage

Run simplehttpserver by a command

 simplehttpserver [directory]

[directory] is used as a web root. Default is the current working directory. Server listens the port 8000. Open browser to http://localhost:8000 to view.

Security Consideration. simplehttpserver does not care if symbolic links point outside the web root directory.

Run locally

 node simplehttpserver.js

You must have all the dependencies installed

Custom MIME types

Additional MIME types can be defined by command line arguments.

 simplehttpserver --mime.text/mytype=my,my2 --mime.font/woff2=woff2 .
 Custom mime types
 *.my,my2 mime type text/mytype
 *.woff2 mime type font/woff2
 Listening 0.0.0.0:8000 web root dir /Users/teemu.ikonen/work/blog/simplehttpserver

Keywords

http

FAQs

Package last updated on 01 Dec 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