This package provides utilities to detect and emit change events from different sources such as LocalStorage and URL.
# pick one
pnpm add window-change-events
npm i window-change-events
yarn add window-change-events-
LocalStorage Change Emittor
Learn how to detect and respond to LocalStorage updates across browser tabs. -
URL Change Emittor
Learn how to listen for URL or search parameter changes and trigger custom events.
import { observeUrl } from "web-change-emittor/url";
import { observeStorage } from "web-change-emittor/localstorage";- Lightweight and dependency-free
- Works across browser tabs
- Supports custom event emitters
- Written in TypeScript with full type support
MIT