@wezz/store-manager
Advanced tools
Comparing version 0.0.9 to 0.0.10
/*! | ||
* | ||
* @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 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
15253
31