programming-with-ia / window-change-events

Lightweight event emitters for URL and localStorage changes with full TypeScript support.

Repository from Github https://github.comprogramming-with-ia/window-change-eventsRepository from Github https://github.comprogramming-with-ia/window-change-events

window-change-events

npm bundle size types license compat

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


🧩 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

About

Lightweight event emitters for URL and localStorage changes with full TypeScript support.


Languages

Language:TypeScript 100.0%