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

stackback

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

stackback

return list of CallSite objects from a captured stacktrace

  • 0.0.2
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
5.8M
decreased by-8.14%
Maintainers
1
Weekly downloads
 
Created

What is stackback?

The stackback npm package is designed to provide an easy way to extract a stack trace from a given Error object. It parses the stack property of Error objects to return an array of call site objects, which can be used for debugging or logging purposes. This can be particularly useful in environments where understanding the sequence of function calls leading to an error is crucial for diagnosing issues.

What are stackback's main functionalities?

Extracting stack traces from Error objects

This feature allows developers to pass an Error object to the stackback function, which returns an array of call site objects representing the stack trace. Each call site object provides detailed information about each stack frame, such as the file name, line number, and column number where the error occurred. This can be invaluable for debugging by providing a clear path of execution up to the point where the error was thrown.

const stackback = require('stackback');
const error = new Error('Test Error');
const stack = stackback(error);
console.log(stack);

Other packages similar to stackback

Keywords

FAQs

Package last updated on 20 Oct 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