Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@brett_langdon/lrserver

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@brett_langdon/lrserver

LiveReload static file server that injects livereload-js into HTML files

  • 1.0.1
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

LiveReload Server

LiveReload static file server that also injects livereload-js into any HTML files.

Installation

npm install @brett_langdon/lrserver

Usage

$ lrserver --help
lrserver

Positionals:
  serve  The directory to serve static files from                       [string]

Options:
  --help        Show help                                              [boolean]
  --version     Show version number                                    [boolean]
  --bind, -b    Host/port for static server to bind to
                                            [string] [default: "127.0.0.1:3000"]
  --lrbind, -l  Host/port for LiveReload to bind to
                                           [string] [default: "127.0.0.1:35729"]
  --watch, -w   Directory to watch for changes                           [array]
# Use default settings and serve static files from current directory
lrserver

# Explicitly set the path to serve files from
lrserver path/to/files/

# Explicitly set the directory to watch and path to serve files from
lrserver --watch path/to/watch/ path/to/files/

# Setting multiple paths to watch
lrserver --watch path/1/ --watch path/2/ path/to/files/

# Change the port the static server binds to
lrserver --bind '0.0.0.0:3000'

# Change the port the LiveReload server binds to
lrserver --lrbind '0.0.0.0:35729'

FAQs

Package last updated on 02 Jan 2018

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc