Skip to content

FreemenL/empty-server

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

empty-server

empty-server is a simple, zero-configuration command-line http server. It is powerful enough for production usage, but it's simple and hackable enough to be used for testing, local development, and learning.

Install

  cnpm install empty-server -g
  npm install empty-server -g

Zero Config

The empty-server works without configuration.

Usage

Static Resource Services

"empty-server -d / -p 8080 -o localhost -P http://129.204.139.211"

Options

You can pass a hash of configuration options to empty-server. Allowed values are as follows

Name Type Default Description
-p or --port {number} 8080 port is used to specify the port of the service
-P or --proxy {String} proxy is used to configure proxies for services
-o or --host {string} loclhost host is used to configure monitored hosts
-d or --root {string} "process.cwd()" root is used to configure the static file root directory

Maintainers


freemenL

About

Static Resource Services

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published