# electron-redux-connector

> electron redux connector

Latest version **1.0.1** (published 2017-09-22) · ISC license · 0 weekly downloads

## Install

```sh
npm install electron-redux-connector
pnpm add electron-redux-connector
yarn add electron-redux-connector
bun add electron-redux-connector
```

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.1 |
| Published | 2017-09-22 |
| First published | 2017-09-21 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Known vulnerabilities | 0 (+53 in 1 direct dependencies) |
| Install scripts | no |
| Author | Yulong Song |
| Maintainers | sylhero88 |
| Keywords | reactjs, webpack, redux, electron |

## Links

- npm: https://www.npmjs.com/package/electron-redux-connector
- Repository: https://github.com/sylhero/electron-redux-connector
- Homepage: https://github.com/sylhero/electron-redux-connector#readme
- Issues: https://github.com/sylhero/electron-redux-connector/issues
- npm.io page: https://npm.io/package/electron-redux-connector

## Dependencies (1)

- [electron](https://npm.io/package/electron.md) ^1.7.6

## Alternatives

- [raw-loader](https://npm.io/package/raw-loader.md) — 4.3M weekly downloads
- [plop](https://npm.io/package/plop.md) — 1.4M weekly downloads
- [webpack-deadcode-plugin](https://npm.io/package/webpack-deadcode-plugin.md) — 80.3K weekly downloads
- [@storybook/preact-vite](https://npm.io/package/@storybook/preact-vite.md) — 54.2K weekly downloads
- [vite-plugin-transform](https://npm.io/package/vite-plugin-transform.md) — 2.4K weekly downloads

## Recent versions

- 1.0.1 (latest) — 2017-09-22
- 1.0.0 — 2017-09-21

## README

# Electron Redux Connector
A simple wrapper over electron ipc api. 

## client
- listen(event, handler)
- listenOnce(event, handler)
- send(event, data)
- sendSync (event, data)
- removeListener(event, handler)
- removeAllListeners(event)
## server
- listen(event, handler)
- send(webContents, channel, data)
- listenOnce(event, handler)
- removeListener(event, handler)
- removeAllListeners(event)

## middleware
```
import { electronRedux } from 'electron-redux-connector';
middlewares = [electronRedux(ELECTRON_MIDDLEWARE_PREFIX), thunk ...] // this middle should be palced as the first middleware then redux will send action with this prefix to electron
```
## index.js
```
import { client } from 'electron-redux-connector';
client.listen(ELECTRON_LISTENER_CHANNEL, (event, arg) => {
    store.dispatch(arg);
});
```

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