You're Invited:Meet the Socket Team at RSAC and BSidesSF 2026, March 23–26.RSVP
Socket
Book a DemoSign in
Socket

browser-reloader

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install
Package version was removed
This package version has been unpublished, mostly likely due to security reasons

browser-reloader

An Awesome CLI tool to reload browser on every code change

unpublished
Source
npmnpm
Version
1.0.5
Version published
Weekly downloads
6
-14.29%
Maintainers
1
Weekly downloads
 
Created
Source

Browser Reloader

An Awesome CLI tool to reload browser on every code change


Description

Save once reload everywhere. Browser Reloader helps you reload the browser when your code change. This tool use chokidar for watching directories and socket.io are used to communicate with the browser.

Features:

  • You can reload browser on every code change.
  • You can watch multiple directories and also reload multiple hosts.
  • You can reload another computer browser with this tools (another computer must connect with the same network)
  • Even you can reload android browser with this module (download firefox and install Browser Reloader extension)

Next features:

  • Live reloading of CSS and JavaScript without doing a full page refresh.

Installation: Command Line Tools

Locally:

npm i browser-reloader

Globally:

npm i -g browser-reloader

Installation: Connect Wtih Browser

There are two method to connect with browser.

1. Method: Extension

To install, clone the repository locally, open chrome://extensions/, check the "Developer mode" box, and use "Load unpacked" extension on the directory containing your clone.

Manifest V2 (Recommended)
Visit repository

Manifest V3
Visit repository

Firefox and Firefox android
Get Extension

2. Method: Script Tag

Add this script tag into your project. If you want to reload both (locally and remotely) browser just add remote wi-fi script tag.

Locally:

<script src="http://localhost:64356/reloader.js"></script>

Remote Wi-Fi:

<script src="http://{IPv4 Address}:64356/reloader.js"></script>

How to use

Start Reloader: CLI

$ reloader --help

Options:
  -w, --watch [type...]  To watch directory, you can watch multiple directories 
  -h, --host [type...]   For reload host, also reload multiple hosts 
  -p, --port [type]      For port 
  --help                 display help for command

Example

$ reloader : default watches all directories and reload all localhost

$ reloader -w public views : watches public ,views directories and reload all localhost

$ reloader -w public/css views : watches css[inside public folder] ,views directories and reload all localhost

$ reloader -w public views -p 4000 : watches public ,views directories and reload localhost:4000

$ reloader -w public views -p 4000 -h ip : watches public ,views directories and reload {Ipv4 address}:4000 Note: if you want to reload another pc or android browser then use it

$ reloader -w public views -p 4000 -h ip localhost : watches public ,views directories and reload {Ipv4 address}:4000, localhost:4000 Note: if you want to reload current pc browser and another pc or android browser then use it
Important Note: ip command automatically detect your ipv4 address

$ reloader -w public views -h localhost:3000 localhost:4000 : watches public ,views directories and reload {Ipv4 address}:4000, localhost:4000 Note: if you want to reload multiple port

Browser Extension

Current Browser: If you want to reload your current browser then do nothing just install browser extension.

Remote Browser: If you want to reload remote browser through local wifi then switch local to wifi, input Ipv4 address then press connect. see below
Alt Text

Contribution

If you want to contribute or report any bug, you welcome

Sorry for my poor English. Don't forget to give a star

Keywords

reloader

FAQs

Package last updated on 24 May 2022

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