Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

breakdown

Package Overview
Dependencies
Maintainers
1
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

breakdown

Top class error reporting for js & coffee-script

  • 0.0.11
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

Breakdown

Top class error reporting for js & coffee-script

Install

npm install breakdown

Configure

Breakdown will handle all uncaught exceptions

# Far better error stack debugging. Do not use in production!
unless process.env.NODE_ENV

  # Breakdown will handle all uncaught exceptions
  breakdown = require 'breakdown'

  # Set as default error handler for express
  app.use (err,req,res,next) ->
    breakdown err
    res.writeHead 500, 'Content-Type': 'text/plain'
    res.end err.stack

Usage

breakdown = require 'breakdown'
breakdown new Error 'Hello World'

Example

TypeError: Cannot read property 'first_name' of undefined
    at test (/var/www/breakdown/test/test.coffee:22:53)
    at delegate (/var/www/breakdown/test/test.coffee:28:12)
    at process.startup.processNextTick.process._tickCallback (node.js:244:9)

Screenshot

Breakdown

FAQs

Package last updated on 31 Dec 2012

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc