Socket
Socket
Sign inDemoInstall

@substrate/local-storage

Package Overview
Dependencies
Maintainers
3
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@substrate/local-storage - npm Package Compare versions

Comparing version 2.2.3 to 2.2.4

2

package.json
{
"name": "@substrate/local-storage",
"version": "2.2.3",
"version": "2.2.4",
"description": "Fork: React hook for local-storage",

@@ -5,0 +5,0 @@ "main": "lib/index.js",

@@ -1,2 +0,2 @@

# `@rehooks/local-storage`
# `@substrate/local-storage`
<!-- ALL-CONTRIBUTORS-BADGE:START - Do not remove or modify this section -->

@@ -8,4 +8,4 @@ [![All Contributors](https://img.shields.io/badge/all_contributors-8-orange.svg?style=flat-square)](#contributors-)

[![npm version](https://badge.fury.io/js/%40rehooks%2Flocal-storage.svg)](https://www.npmjs.com/package/@rehooks/local-storage)
[![npm downloads](https://img.shields.io/npm/dw/@rehooks/local-storage)](https://www.npmjs.com/package/@rehooks/local-storage)
[![npm version](https://badge.fury.io/js/%40rehooks%2Flocal-storage.svg)](https://www.npmjs.com/package/@substrate/local-storage)
[![npm downloads](https://img.shields.io/npm/dw/@substrate/local-storage)](https://www.npmjs.com/package/@substrate/local-storage)

@@ -16,3 +16,3 @@ API Docs can be found [here](https://rehooks.github.io/local-storage).

- [`@rehooks/local-storage`](#rehookslocal-storage)
- [`@substrate/local-storage`](#rehookslocal-storage)
- [Table of Contents](#Table-of-Contents)

@@ -34,3 +34,3 @@ - [Install](#Install)

```sh
yarn add @rehooks/local-storage
yarn add @substrate/local-storage
```

@@ -41,3 +41,3 @@

```sh
npm i @rehooks/local-storage --save
npm i @substrate/local-storage --save
```

@@ -56,3 +56,3 @@

import React from 'react';
import { writeStorage } from '@rehooks/local-storage';
import { writeStorage } from '@substrate/local-storage';

@@ -77,3 +77,3 @@ let counter = 0;

import React from 'react';
import { useLocalStorage } from '@rehooks/local-storage';
import { useLocalStorage } from '@substrate/local-storage';

@@ -94,3 +94,3 @@ function MyComponent() {

import React from 'react';
import { useLocalStorage } from '@rehooks/local-storage';
import { useLocalStorage } from '@substrate/local-storage';

@@ -114,3 +114,3 @@ function MyComponent() {

import React from 'react';
import { useLocalStorage } from '@rehooks/local-storage';
import { useLocalStorage } from '@substrate/local-storage';

@@ -133,3 +133,3 @@ function MyComponent() {

```js
import { writeStorage, deleteFromStorage } from '@rehooks/local-storage';
import { writeStorage, deleteFromStorage } from '@substrate/local-storage';

@@ -153,3 +153,3 @@ writeStorage('name', 'Homer Simpson'); // Add an item first

import { render } from 'react-dom';
import { writeStorage, deleteFromStorage, useLocalStorage } from '@rehooks/local-storage';
import { writeStorage, deleteFromStorage, useLocalStorage } from '@substrate/local-storage';

@@ -156,0 +156,0 @@ const startingNum = 0;

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