Socket
Socket
Sign inDemoInstall

localstorage-var

Package Overview
Dependencies
2
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    localstorage-var

Implementation of the simple-events variable interface using localStorage


Version published
Weekly downloads
1
Maintainers
1
Created
Weekly downloads
 

Readme

Source

LocalStorage Var

Implementation of the mini-events variable interface using localStorage

Usage

Call the exported function with a string key to get a function which has the same type as variable from mini-events.

const [set, { get, changed }] = localStorageVar('myState')('initialState')

See @lbfalvy/mini-events for examples on how to use the variable interface.

FAQs

Last updated on 13 May 2022

Did you know?

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc