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

redux-local-storage

Package Overview
Dependencies
Maintainers
4
Versions
21
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

redux-local-storage - npm Package Compare versions

Comparing version 1.0.0 to 1.1.0

2

package.json
{
"name": "redux-local-storage",
"version": "1.0.0",
"version": "1.1.0",
"description": "Redux middleware for accessing local storage",

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

@@ -26,2 +26,17 @@ # redux-local-storage

```javascript
# install middleware
import createLocalStorage from 'redux-local-storage'
import thunkMiddleware from 'redux-thunk'
import reducer from './reducer'
const localStorageMiddleware = createLocalStorage()
const createStoreWithMiddleware = applyMiddleware(
thunkMiddleware,
localStorageMiddleware
)(createStore)
const store = createStoreWithMiddleware(reducer)
# action creator
import { LOCAL_GET, LOCAL_SET, LOCAL_REMOVE } from 'redux-local-storage/action_types'

@@ -54,1 +69,9 @@

```
[View example app](https://github.com/mahaplatform/redux-local-storage/tree/master/example)
## Author & Credits
redux-local-storage was originally written by [Greg Kops](https://github.com/mochini) and
is based upon his work with [Think Topography](http://thinktopography.com) and
[The Cornell Cooperative Extension of Tompkins County](http://ccetompkins.org)
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