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

light-web-server

Package Overview
Dependencies
Maintainers
1
Versions
15
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

light-web-server

Simple web server using PHP built-in web server.

latest
Source
npmnpm
Version
1.3.0
Version published
Maintainers
1
Created
Source

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

Keywords

web server

FAQs

Package last updated on 17 May 2021

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