# redux-persist-node-storage

> Redux persist adaptor for Node local storage

Latest version **2.0.0** (published 2017-12-22) · MIT license · 0 weekly downloads

## Install

```sh
npm install redux-persist-node-storage
pnpm add redux-persist-node-storage
yarn add redux-persist-node-storage
bun add redux-persist-node-storage
```

## Health

**Score 25/100 (F)** — status: abandoned.

Positive: has types; no vulnerabilities; high quality score.

Warnings: low downloads; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 2.0.0 |
| Published | 2017-12-22 |
| First published | 2016-08-17 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 1 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 25 |
| Maintainers | tristanlievens |
| Keywords | redux, redux-persist, localstorage |

## Links

- npm: https://www.npmjs.com/package/redux-persist-node-storage
- Repository: https://github.com/pellejacobs/redux-persist-node-storage
- Homepage: https://github.com/pellejacobs/redux-persist-node-storage#readme
- Issues: https://github.com/pellejacobs/redux-persist-node-storage/issues
- npm.io page: https://npm.io/package/redux-persist-node-storage

## Dependencies (1)

- [node-localstorage](https://npm.io/package/node-localstorage.md) ^1.3.0

## Alternatives

- [localforage](https://npm.io/package/localforage.md) — 6.2M weekly downloads
- [localforage-observable](https://npm.io/package/localforage-observable.md) — 30.8K weekly downloads
- [@y/y](https://npm.io/package/@y/y.md) — 30.1K weekly downloads
- [@metaobjectsdev/render](https://npm.io/package/@metaobjectsdev/render.md) — 3.5K weekly downloads
- [@ledgerhq/coin-algorand](https://npm.io/package/@ledgerhq/coin-algorand.md) — 1.1K weekly downloads

## Recent versions

- 2.0.0 (latest) — 2017-12-22
- 1.0.2 — 2016-08-17
- 1.0.1 — 2016-08-17
- 1.0.0 — 2016-08-17

## README

# Redux persist node storage 

[![Travis branch](https://img.shields.io/travis/pellejacobs/redux-persist-node-storage/master.svg?maxAge=2592000&style=flat-square)](https://travis-ci.org/pellejacobs/redux-persist-node-storage)
[![npm version](https://img.shields.io/npm/v/redux-persist-node-storage.svg?style=flat-square)](https://www.npmjs.com/package/redux-persist-node-storage)
[![npm downloads](https://img.shields.io/npm/dt/redux-persist-node-storage.svg?style=flat-square)](https://www.npmjs.com/package/redux-persist-node-storage)


Storage adaptor to use [node-localstorage](https://github.com/lmaccherone/node-localstorage) with [redux-persist](https://github.com/rt2zz/redux-persist), by implementing the needed methods: `setItem`, `getItem`, `removeItem` and `getAllKeys`

## install
Simply run: 

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

## usage 
```javascript
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') })
```

---
_Source: https://npm.io/package/redux-persist-node-storage · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
