New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

local-server

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

local-server

Static web server

0.1.6
npm
Version published
Weekly downloads
41
78.26%
Maintainers
1
Weekly downloads
 
Created
Source

local-server

Simple static web server.

Install

npm install local-server -g

Usage

lserver -p [port] -r [root folder] -f [fallback path if not found]

Arguments (all are optional):

  • p: [Number] port number, default to 8000
  • r: [String] root folder, default to working directory
  • f: [String] fallback path when page not found, default to not falling back and send 404

For example

lserver -p 9000 -r ./ -f index.html
=> Server running at http://localhost:9000/ [root: ./, fallback: index.html]

That's all!

Keywords

server

FAQs

Package last updated on 01 Aug 2014

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