1.0.3 • Published 10 years ago
redux-debug v1.0.3
redux-debug
debug() as redux middleware. Similar to redux-logger, but works both on the server and in the client.

Installation
npm install redux-debugUsage
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.
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