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

@meniga/storage

Package Overview
Dependencies
Maintainers
4
Versions
102
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@meniga/storage

A library to use local and session storage securely

  • 4.2.1-alpha.1
  • npm
  • Socket score

Version published
Weekly downloads
128
increased by228.21%
Maintainers
4
Weekly downloads
 
Created
Source

@meniga/storage

Storage is a utility library for saving information in local and session storage and uses the store2 library.

The default store used is Storage.session, but you can specify to use Session.local by default if you prefer.

The getItem, setItem, removeItem and clearStorage methods work with the store set as default, while getLocalItem and getSessionItem (et al) work on specific stores.

Exports


Storage

The Storage object contains the following methods:

  • setDefaultStore ()
  • useLocalStorageByDefault ()
  • useSessionStorageByDefault ()
  • getItem ( key )
  • getLocalItem ( key )
  • getSessionItem ( key )
  • setItem ( key, value )
  • setLocalItem ( key, value )
  • setSessionItem ( key, value )
  • removeItem ( key )
  • removeLocalItem ( key )
  • removeSessionItem ( key )
  • broadCastClearStorage ()
  • clearStorage ()
  • clearLocalStorage ()
  • clearSessionStorage ()

FAQs

Package last updated on 29 Sep 2019

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

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