New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

redux-debug

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

redux-debug

debug() as redux middleware

latest
Source
npmnpm
Version
1.0.3
Version published
Weekly downloads
174
-25.64%
Maintainers
1
Weekly downloads
 
Created
Source

redux-debug

debug() as redux middleware. Similar to redux-logger, but works both on the server and in the client.

img

Installation

npm install redux-debug

Usage

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

Keywords

debug

FAQs

Package last updated on 09 Nov 2015

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts