🎩 You're Invited:Meet the Socket team at Black Hat in Las Vegas, August 3-6.RSVP
Sign In

session-storage-sync

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

session-storage-sync

sync session storage across multiple browser tabs from same origin

latest
Source
npmnpm
Version
0.6.3
Version published
Maintainers
1
Created
Source

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

  • clone the repo
  • npm install -g typescript
  • $ 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

Keywords

browser-storage

FAQs

Package last updated on 04 Feb 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts