log-errback

1.0.3 • Public • Published

log-errback

npm travis standard

Logs the arguments from an errorback. A useful callback probe.

Install

npm install log-errback

Usage

var logErrback = require('log-errback')
 
asyncFunction(logErrback.sync) // logs out the arguments it receives and does not call a callback
 
// say you have the following
 
asyncFunction(function(err, results) {
  if (err) throw(err)
  // do stuff with results
})
 
// Its not working and you want to dig into the callback arguments, you can insert
// logErrBack to log out whats getting passed into the callback
 
asyncFunction(logErrback(function(err, results) {
  if (err) throw(err)
  // do stuff with results
}))

Contributing

Contributions welcome! Please read the contributing guidelines first.

License

ISC

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.0.3
    1
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.0.3
    1
  • 1.0.2
    0
  • 1.0.1
    0
  • 1.0.0
    0

Package Sidebar

Install

npm i log-errback

Weekly Downloads

1

Version

1.0.3

License

ISC

Last publish

Collaborators

  • bret