Syncs localStorage and sessionStorage across all browser tabs from the same origin. Version 0.6.3 (latest) is a maintenance-phase release with no recent updates. It is TypeScript-friendly, requiring no external type definitions, and targets AMD module loaders. Unlike native storage events which only fire in other tabs, this library provides a unified API to read/write and automatically synchronizes data across all open tabs. It is lightweight but has no active maintenance since 2019, making it suitable only for projects that accept risk of unpatched issues.
npm install session-storage-syncNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows basic usage: create Storage instance, set/get/remove/clear on both sessionStorage and localStorage with cross-tab synchronization.
Consider alternatives like `broadcast-channel` or `localStorage` native events.
Use exact import `import { Storage } from 'session-storage-sync'`.Always use `new Storage()`.
Recompile TypeScript with desired module target (e.g., `commonjs` or `es2015`) using `tsc --module commonjs`.
Recompile TypeScript with `module: commonjs` or use a bundler that supports AMD.
Change `const storage = Storage();` to `const storage = new Storage();`
Run `npm install session-storage-sync` and ensure import path matches package name.
No dependency data recorded yet.