# storeon-localstorage

> Module for storeon to persist data from state to local storage

Latest version **0.2.0** (published 2019-05-01) · MIT license · 0 weekly downloads

> **Deprecated.** This package is deprecated.

## Install

```sh
npm install storeon-localstorage
pnpm add storeon-localstorage
yarn add storeon-localstorage
bun add storeon-localstorage
```

## Health

**Score 10/100 (F)** — status: deprecated.

Negative: deprecated.

## Facts

| | |
|---|---|
| Version | 0.2.0 |
| Published | 2019-05-01 |
| First published | 2019-05-01 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 5.8 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Ivan Menshykov |
| Maintainers | polemius |

## Links

- npm: https://www.npmjs.com/package/storeon-localstorage
- Repository: https://github.com/polemius/storeon-localstorage
- Homepage: https://github.com/polemius/storeon-localstorage#readme
- Issues: https://github.com/polemius/storeon-localstorage/issues
- npm.io page: https://npm.io/package/storeon-localstorage

## Recent versions

- 0.2.0 (latest) — 2019-05-01
- 0.1.0 — 2019-05-01

## README

# storeon-localstorage

## Installation

```
yarn add storeon-localstorage
```

## Usage

```js
import persistState from 'storeon-localstorage'

const store = createStore([
  /* modules */
 persistState(), 
])
```

### persistState(path, config)

```js
type path = Void | String | Array<String>
```

If no pass the `path` value then `persistState` store in local storage all state.

```js
type config.key = String
```

Default value of `config.key` is `storeon`. This key used to store date in local storage.

## LICENSE

MIT

## Acknowledgments

This module based on [redux-localstorage](https://github.com/elgerlambert/redux-localstorage).

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