session-storage-sync

0.6.0 • Public • Published

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
 

Dependencies (0)

    Dev Dependencies (2)

    Package Sidebar

    Install

    npm i session-storage-sync

    Weekly Downloads

    11

    Version

    0.6.0

    License

    MIT

    Unpacked Size

    27.3 kB

    Total Files

    18

    Last publish

    Collaborators

    • weagle08