window-change-events
v0.1.0
Published
Lightweight event emitters for URL and localStorage changes with full TypeScript support.
Maintainers
Readme
window-change-events
This package provides utilities to detect and emit change events from different sources such as LocalStorage and URL.
Install
# pick one
pnpm add window-change-events
npm i window-change-events
yarn add window-change-events📚 Documentation
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 Examples
import { observeUrl } from "web-change-emittor/url";
import { observeStorage } from "web-change-emittor/localstorage";⚙️ Features
- Lightweight and dependency-free
- Works across browser tabs
- Supports custom event emitters
- Written in TypeScript with full type support
License
MIT
