Socket
Book a DemoInstallSign in
Socket

tlr

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

tlr

Quick spawn a tiny-lr server

latest
Source
npmnpm
Version
1.0.0
Version published
Maintainers
1
Created
Source

tlr NPM version Build Status

What is quickier than using tiny-lr? Using tlr of course.

About

Small cli util that spawns a simple tiny-lr server.

Batteries NOT included

Integration

The spawned server will listen to all regular tiny-lr endpoints.

e.g. If you're using nodemon you should be able to hook an event into your nodemon.json config file:

{
  "events": {
    "restart": "sleep 1; curl http://localhost:35729/changed?files=foo"
  }
}

Please refer to tiny-lr docs for more info on available endpoints.

Install

npm install tlr

Usage

tlr

Using a custom port:

export LR_PORT=9999
tlr

Workflow ideas

  • Use it along with nodemon
  • and concurrently
  • to provide a single npm task
  • that can be used as entry point
  • Add a <script src="//localhost:35729/livereload.js"></script> to your html template
  • Livereload FTW!

License

MIT © Ruy Adorno

Keywords

livereload

FAQs

Package last updated on 26 Jan 2017

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