1.3.0 • Published 3 years ago

light-web-server v1.3.0

Weekly downloads
7
License
MIT
Repository
github
Last release
3 years ago

Light web server

npm version npm module downloads dependencies devDependencies Build Status Coverage Status JavaScript Style Guide license

Simple web server using PHP built-in web server. Windows only. If you are on macOS, locally installed PHP will be run (with given params).

Prerequisites

Node.js and npm already installed on your machine.

Instalation

Install package via npm in your project as a dependency:

npm install light-web-server --save-dev

Usage

In your project directory:

lws --hostname=192.168.1.252 --port=9000 --dir=test/

It will start the web server available at http://192.168.1.252:9000/ (default hostname is localhost, default port is :8000).

URI requests are served from the current working directory, unless the --dir= flag (parameter) is used to specify an explicit document root.

CLI parameters

ParameterDescription
hostnameport (default localhost)
portport (default 8000)
dirdocument root directory

PHP version

7.1.11

License

MIT

1.3.0

3 years ago

1.2.8

4 years ago

1.2.7

4 years ago

1.2.6

6 years ago

1.2.5

6 years ago

1.2.4

6 years ago

1.2.3

6 years ago

1.2.2

6 years ago

1.2.1

6 years ago

1.2.0

6 years ago

1.1.2

6 years ago

1.1.1

6 years ago

1.1.0

6 years ago

1.0.2

6 years ago

1.0.0

6 years ago