redux-persist-node-storage
TypeScript icon, indicating that this package has built-in type declarations

2.0.0 • Public • Published

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') })

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 2.0.0
    1,720
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 2.0.0
    1,720
  • 1.0.2
    150
  • 1.0.1
    0
  • 1.0.0
    0

Package Sidebar

Install

npm i redux-persist-node-storage

Weekly Downloads

1,870

Version

2.0.0

License

MIT

Last publish

Collaborators

  • tristanlievens