Naughty Pterodactyl Maid

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

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

    Install

    npm i redux-persist-node-storage-fsync

    DownloadsWeekly Downloads

    3

    Version

    0.0.1

    License

    MIT

    Last publish

    Collaborators

    • charliehess