light-web-server

1.3.0 • Public • Published

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

Parameter Description
hostname port (default localhost)
port port (default 8000)
dir document root directory

PHP version

7.1.11

License

MIT

Dependents (0)

Package Sidebar

Install

npm i light-web-server

Weekly Downloads

11

Version

1.3.0

License

MIT

Unpacked Size

62 MB

Total Files

94

Last publish

Collaborators

  • ivan-rozhon