Skip to content
Redux persist adaptor for Node localStorage
Branch: master
Clone or download
Pelle Jacobs
Latest commit 6afabac Dec 22, 2017
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
src
.editorconfig Initialize repo: functionality, test, readme Aug 17, 2016
.gitignore added jetbrains IDE files to .gitignore Dec 21, 2017
.travis.yml
README.md Update README.md Aug 20, 2016
index.d.ts adjusted exports after implementing promise based interface Dec 21, 2017
package-lock.json added package lock file Dec 21, 2017
package.json
tsconfig.json Initialize repo: functionality, test, readme Aug 17, 2016
tslint.json Initialize repo: functionality, test, readme Aug 17, 2016
typings.json Initialize repo: functionality, test, readme Aug 17, 2016

README.md

Redux persist node storage

Travis branch npm version npm downloads

Storage adaptor to use node-localstorage with redux-persist, by implementing the needed methods: setItem, getItem, removeItem and getAllKeys

install

Simply run:

npm install --save redux-persist-node-storage

usage

import { AsyncNodeStorage } from 'redux-persist-node-storage'
import { persistStore, autoRehydrate } from 'redux-persist'
const store = createStore(reducer, undefined, autoRehydrate())
persistStore(store, { storage: new AsyncNodeStorage('/tmp/storageDir') })
You can’t perform that action at this time.