Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@wezz/store-manager

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@wezz/store-manager - npm Package Compare versions

Comparing version 0.0.9 to 0.0.10

2

build/index.js
/*!
*
* @wezz/store-manager v0.0.9
* @wezz/store-manager v0.0.10
* https://github.com/wezz/StoreManager

@@ -5,0 +5,0 @@ *

{
"name": "@wezz/store-manager",
"version": "0.0.9",
"version": "0.0.10",
"description": "A script to manage local and session storage",

@@ -5,0 +5,0 @@ "main": "build/index.js",

@@ -1,2 +0,2 @@

# Window Reference store
# Store Manager

@@ -6,11 +6,16 @@

```
npm install @wezz/window-reference-store
npm install @wezz/store-manager
```
## Usage
### Initialize Window Reference Store
### Initialize Store Manager
```
import refStore from "@wezz/window-reference-store";
import StoreManager from "@wezz/store-manager";
// On document ready
new refStore();
const storeManager = new StoreManager('prefix');
// Save to localStorage
storeManager.Set('keyname', {'jsondatakey': 'jsondatavalue}, true);
// Save to sessionStorage
storeManager.Set('keyname', {'jsondatakey': 'jsondatavalue});
storeManager.Get('keyname');
```

@@ -17,0 +22,0 @@

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc