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

jrestore

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

jrestore - npm Package Compare versions

Comparing version 1.0.1 to 1.0.2

2

package.json
{
"name": "jrestore",
"version": "1.0.1",
"version": "1.0.2",
"author": "Strebler",

@@ -5,0 +5,0 @@ "description": "Use your localStorage as a reactive JSON store (usable via React hooks or without React)",

@@ -41,3 +41,4 @@ # Install

jrestore.setItem('mykey', -452) // Prints "Value changed : -452"
jrestore.setItem('mykey', []) // Prints "Value changed : []"
jrestore.setItem('mykey', [1, 2]) // Prints "Value changed : [1, 2]"
jrestore.setItem('mykey', arr => [...arr, 3]) // Prints "Value changed : [1, 2, 3]"
jrestore.clear() // Prints "Value changed : undefined"

@@ -54,3 +55,3 @@ jrestore.setItem('mykey', true) // Prints "Value changed : true"

```jsx
```javascript
import React from 'react

@@ -57,0 +58,0 @@ import jrestore from 'jrestore'

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