Introducing Socket Firewall: Free, Proactive Protection for Your Software Supply Chain.Learn More
Socket
Book a DemoInstallSign in
Socket

storage-cover

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

storage-cover

web storage wrapper for continuous web application in all browsers

latest
Source
npmnpm
Version
1.0.4
Version published
Maintainers
1
Created
Source

storage-cover

Web Storage might not work because its implementation(e.g. incognito mode) is different by browsers. So developers should take these different implementations into account.

storage-cover is great solution for resolving this issue. storage-cover wraps Web Storage to prevent unexpected error and keep your web application continuous.

  • zero dependencies
  • easy to use
  • support SSR
import { wrapLocalStorage, wrapSessionStorage } from "storage-cover";

export const localStorage = wrapLocalStorage();
export const sessionStorage = wrapSessionStorage();
localStorage.set("SOME_KEY", "Hello, World!");
console.log(localStorage.get("SOME_KEY")); // Hello, World!

Keywords

WebStorage

FAQs

Package last updated on 10 Jun 2022

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