JSPM

session-storage-sync

0.6.3
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 17
  • Score
    100M100P100Q66784F
  • License MIT

sync session storage across multiple browser tabs from same origin

Package Exports

  • session-storage-sync
  • session-storage-sync/dist/index.js

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (session-storage-sync) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

session-storage-sync

Sync local and session storage across browser tabs from the same origin.

  • Typescript friendly, no @types required
  • built for amd module loader

BUILDING

  1. clone the repo
  2. npm install -g typescript
  3. $ tsc
    • modify the module option to support whatever module loader you desire

USAGE

This module is to be used in place of using window.sessionStorage

    import {Storage} from 'session-storage-sync';

    const storage = new Storage();
    storage.session.set('hello', 'world'); //will sync across all open tabs from the same origin