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

stackup

Package Overview
Dependencies
Maintainers
4
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

stackup

Long stack traces based on async listeners

  • 1.0.2
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
1.1K
increased by8.88%
Maintainers
4
Weekly downloads
 
Created
Source

Stackup

Stackup is a long stack trace module build off of async listeners.

Install

npm install --save stackup

Require the module at the start of your application:

require('stackup');

Errors that propagate to uncaughtException will magically turn into long stack traces.

Example Output

Error: Something went wrong
    at C (/home/jacob/stackup/demo.js:28:13)
    at process._tickCallback (node.js:415:13)
    ---- async ----
    at B (/home/jacob/stackup/demo.js:24:13)
    at Timer.listOnTimeout [as ontimeout] (timers.js:110:15)
    ---- async ----
    at global.setTimeout (node.js:174:27)
    at Object.A (/home/jacob/stackup/demo.js:20:3)
    at processImmediate [as _immediateCallback] (timers.js:330:15)
    ---- async ----
    at global.setImmediate (node.js:194:29)
    at Object.<anonymous> (/home/jacob/stackup/demo.js:13:1)
    at Module._compile (module.js:456:26)
    at Object.Module._extensions..js (module.js:474:10)
    at Module.load (module.js:356:32)
    at Function.Module._load (module.js:312:12)
    at Function.Module.runMain (module.js:497:10)
    at startup (node.js:119:16)
    at node.js:901:3

Caveats

I haven't really tested this yet.

  • it may die horribly if you throw a non-object

FAQs

Package last updated on 30 Aug 2017

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