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

1.0.1 • Public • Published

redux-persist-storage-node

redux-persist storage for Node.js/Electron.

Example

// [...]
 
import {resolve} from "path";
import NodeStorage from "redux-persist-storage-node";
 
// [...]
 
persistStore(store, {
    keyPrefix: "",
    storage: new NodeStorage(resolve("./store.json"))
});

API

Exports a default class.

new NodeStorage(fileName: string)

  • fileName: An absolute path to the file to write the storage to.

Package Sidebar

Install

npm i redux-persist-storage-node

Weekly Downloads

1

Version

1.0.1

License

X11

Last publish

Collaborators

  • odensc