# redux-bomb

> Bomb middleware for Redux.

Latest version **0.0.1** (published 2019-03-07) · MIT license · 0 weekly downloads

## Install

```sh
npm install redux-bomb
pnpm add redux-bomb
yarn add redux-bomb
bun add redux-bomb
```

## Health

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

Positive: esm support; no vulnerabilities.

Warnings: low downloads; no types; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.1 |
| Published | 2019-03-07 |
| First published | 2019-03-07 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | ESM + CommonJS |
| Dependencies | 0 |
| Unpacked size | 2.6 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | Lego |
| Maintainers | qas612820704 |
| Keywords | useless, redux, bomb, redux-middleware |

## Links

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

## Alternatives

- [@sindresorhus/slugify](https://npm.io/package/@sindresorhus/slugify.md) — 3.7M weekly downloads
- [solid-js](https://npm.io/package/solid-js.md) — 2.7M weekly downloads
- [expo-glass-effect](https://npm.io/package/expo-glass-effect.md) — 2.5M weekly downloads
- [nanoassert](https://npm.io/package/nanoassert.md) — 780.8K weekly downloads
- [@ffmpeg/ffmpeg](https://npm.io/package/@ffmpeg/ffmpeg.md) — 529.5K weekly downloads

## Recent versions

- 0.0.1 (latest) — 2019-03-07

## README

# Redux Bomb

> This is a useless middleware.

This middleware will fork 2 more actions when every dispatching.

## Get Started

```js
import { createStore, applyMiddleware } from 'redux';
import bomb from '../src';

const counter = (state = 0, action) => {
  if (action.type === 'INCREMENT') return state + 1;

  return state;
};

const store = createStore(counter, applyMiddleware(bomb));

store.subscribe(() => console.log(store.getState()));

store.dispatch({ type: 'INCREMENT' });

/*
  A beautiful flushing screen
*/
```

![Demo](./_github/demo.gif)

### with-delay

It can set delay in milesecond.

```js
  applyMiddleware(bomb.delay(1000));
```

That it.

**DO NOT USE IT.**

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