empty-server

1.0.0 • Public • Published

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

Readme

Keywords

Package Sidebar

Install

npm i empty-server

Weekly Downloads

2

Version

1.0.0

License

ISC

Unpacked Size

18.8 kB

Total Files

9

Last publish

Collaborators

  • fremenl