# redux-immutable-to-js

> A proxy creator for Redux store to convert immutable objects to JS objects.

Latest version **0.0.2** (published 2016-08-23) · MIT license · 0 weekly downloads

## Install

```sh
npm install redux-immutable-to-js
pnpm add redux-immutable-to-js
yarn add redux-immutable-to-js
bun add redux-immutable-to-js
```

## Health

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

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.2 |
| Published | 2016-08-23 |
| First published | 2015-12-13 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 3 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 8 |
| Author | nakamura-to |
| Maintainers | nakamura-to |
| Keywords | redux, immutable, tojs |

## Links

- npm: https://www.npmjs.com/package/redux-immutable-to-js
- Repository: https://github.com/nakamura-to/redux-immutable-to-js
- Homepage: https://github.com/nakamura-to/redux-immutable-to-js#readme
- Issues: https://github.com/nakamura-to/redux-immutable-to-js/issues
- npm.io page: https://npm.io/package/redux-immutable-to-js

## Dependencies (3)

- [immutable](https://npm.io/package/immutable.md) ^3.7.5
- [lodash.mapvalues](https://npm.io/package/lodash.mapvalues.md) ^4.6.0
- [lodash.isplainobject](https://npm.io/package/lodash.isplainobject.md) ^3.2.0

## Alternatives

- [@lexical/table](https://npm.io/package/@lexical/table.md) — 3.0M weekly downloads
- [mantine-datatable](https://npm.io/package/mantine-datatable.md) — 98.2K weekly downloads
- [react-native-collapsible-tab-view](https://npm.io/package/react-native-collapsible-tab-view.md) — 70.6K weekly downloads
- [@handsontable/vue3](https://npm.io/package/@handsontable/vue3.md) — 16.1K weekly downloads
- [vuewordcloud](https://npm.io/package/vuewordcloud.md) — 7.2K weekly downloads

## Recent versions

- 0.0.2 (latest) — 2016-08-23
- 0.0.1 — 2015-12-13

## README

Redux Immutable to JS
=============================

A proxy creator for Redux store to convert immutable objects to JS objects.

## Motivation

Redux Immutable to JS allows you to convert immutable objects to JS objects
automatically when Redux state is required outside reducers.

This library is inspired by [Immutable Data Structures and JavaScript](http://jlongster.com/Using-Immutable-Data-Structures-in-JavaScript).

> If you are using Immutable.js in a
specific part of your system, don't make anything outside of it access the
data structures directly. A good example is Redux and it's single atom app state.
If the app state is an Immutable.js object, don't force React components to
use Immutable.js' API directly.

## Installation

```sh
npm install --save redux-immutable-to-js
```

## Example App

```sh
$ cd example
$ npm install
$ npm start
```

## Examples of Use

### Simple

```js
import { createStore } from 'redux';
import immutableToJS from 'redux-immutable-to-js';
import rootReducer from './reducers/index';

// create a store that has redux-immutable-to-js enabled
const finalCreateStore = immutableToJS()(createStore);

const store = finalCreateStore(rootReducer);
```

### Composition

```js
import { createStore, applyMiddleware, compose } from 'redux';
import thunk from 'redux-thunk';
import immutableToJS from 'redux-immutable-to-js';
import rootReducer from './reducers/index';

// create a store that has redux-thunk middleware and redux-immutable-to-js enabled
const finalCreateStore = compose(
  applyMiddleware(thunk),
  immutableToJS()
)(createStore);

const store = finalCreateStore(rootReducer);
```

## License

MIT

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