# redux-debug

> debug() as redux middleware

Latest version **1.0.3** (published 2015-11-09) · 0 weekly downloads

## Install

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

## 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.3 |
| Published | 2015-11-09 |
| First published | 2015-10-10 |
| Weekly downloads | 0 |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 3 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 45 |
| Author | Matthew Mueller |
| Maintainers | mattmueller |
| Keywords | debug, redux, logging |

## Links

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

## Dependencies (3)

- [chalk](https://npm.io/package/chalk.md) ^1.1.1
- [strip-ansi](https://npm.io/package/strip-ansi.md) ^3.0.0
- [util-inspect](https://npm.io/package/util-inspect.md) ^0.1.8

## Alternatives

- [cli-color](https://npm.io/package/cli-color.md) — 3.4M weekly downloads
- [log](https://npm.io/package/log.md) — 1.3M weekly downloads
- [logstash-client](https://npm.io/package/logstash-client.md) — 4.5K weekly downloads
- [@nocobase/plugin-logger](https://npm.io/package/@nocobase/plugin-logger.md) — 2.0K weekly downloads
- [child-process-debug](https://npm.io/package/child-process-debug.md) — 695 weekly downloads

## Recent versions

- 1.0.3 (latest) — 2015-11-09
- 1.0.2 — 2015-11-07
- 1.0.1 — 2015-10-10
- 1.0.0 — 2015-10-10

## README

# redux-debug

  [debug()](https://github.com/tj/debug/) as redux middleware. Similar to [redux-logger](https://github.com/fcomb/redux-logger/), but works both on the server and in the client.

  ![img](https://cldup.com/-bY7fA8ljK.png)

## Installation

```
npm install redux-debug
```

## Usage

```js
var Debug = require('redux-debug')
var debug = require('debug')('redux')

var Store = Redux.compose(
  Redux.applyMiddleware(Debug(debug))
)(Redux.createStore)
```

## API

### `Debug(fn, options)`

This `fn` is usually a `debug` instance but can be any sprintf-compatible function.

```js
Redux.applyMiddleware(Debug(console.log))
```

Available options include:

- `collapsed` (default: false): Collapse the state transitions

## FAQ

- My logs aren't showing up!

If you're using debug, you'll need to pass the `DEBUG=...` environment variable. If you're
in the browser, you'll need to set `localStorage.DEBUG='...'`.

## License

MIT

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