# @pagoru/redux-middleware

> ![Build status](https://pagoru.visualstudio.com/redux-middleware/_apis/build/status/redux-middleware-CI) # @pagoru/redux-middleware Simple redux middleware library, to create your own middleware.

Latest version **20.97.1** (published 2020-04-06) · MIT license · 0 weekly downloads

## Install

```sh
npm install @pagoru/redux-middleware
pnpm add @pagoru/redux-middleware
yarn add @pagoru/redux-middleware
bun add @pagoru/redux-middleware
```

## Health

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

Positive: has types; no vulnerabilities.

Warnings: low downloads; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 20.97.1 |
| Published | 2020-04-06 |
| First published | 2020-03-22 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 3.5 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | @pagoru |
| Maintainers | pagoru |
| Keywords | redux, middleware, node, typescript |

## Links

- npm: https://www.npmjs.com/package/@pagoru/redux-middleware
- Repository: https://github.com/pagoru/redux-middleware
- Homepage: https://github.com/pagoru/redux-middleware#readme
- Issues: https://github.com/pagoru/redux-middleware/issues
- npm.io page: https://npm.io/package/@pagoru/redux-middleware

## Alternatives

- [@openai/codex-sdk](https://npm.io/package/@openai/codex-sdk.md) — 731.4K weekly downloads
- [babel-plugin-transform-react-jsx](https://npm.io/package/babel-plugin-transform-react-jsx.md) — 565.0K weekly downloads
- [babel-helper-remove-or-void](https://npm.io/package/babel-helper-remove-or-void.md) — 508.5K weekly downloads
- [@pnpm/store-controller-types](https://npm.io/package/@pnpm/store-controller-types.md) — 186.9K weekly downloads
- [react-native-signature-canvas](https://npm.io/package/react-native-signature-canvas.md) — 155.6K weekly downloads

## Recent versions

- 20.97.1 (latest) — 2020-04-06
- 20.82.5 — 2020-03-22
- 20.82.4 — 2020-03-22
- 20.82.1 — 2020-03-22

## README

![Build status](https://pagoru.visualstudio.com/redux-middleware/_apis/build/status/redux-middleware-CI)
# @pagoru/redux-middleware
Simple redux middleware library, to create your own middleware.

## Usage
```js
import { createStore } from 'redux'
import { middleware, middlewareHandler } from 'redux-middleware'

// Create as many you need.
middlewareHandler(  
    (action, getState) => {  
	    // you can modify your action here
		console.log('will', action, getState());  
		return action;  
  }, (action, getState) => {  
        console.log('did', action, getState());  
  }  
);

const initialStore = {}
// Add the middleware to the createStore.
const store = createStore(rootReducer, initialStore, applyMiddleware(middleware));

```

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