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

sourcemapped-stacktrace

Package Overview
Dependencies
Maintainers
1
Versions
15
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

sourcemapped-stacktrace

A simple module for applying source maps to JS stack traces in the browser.

  • 1.1.5
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
126K
increased by32.5%
Maintainers
1
Weekly downloads
 
Created

What is sourcemapped-stacktrace?

The sourcemapped-stacktrace npm package allows developers to map minified stack traces back to their original source code using source maps. This is particularly useful for debugging production errors where the code is often minified and obfuscated.

What are sourcemapped-stacktrace's main functionalities?

Map Stack Trace

This feature allows you to map a minified stack trace back to the original source code. The `mapStackTrace` function takes a stack trace string and a callback function. The callback function receives the mapped stack trace as an array of strings.

const sourcemappedStacktrace = require('sourcemapped-stacktrace');

const stack = 'Error: Something went wrong\n    at minified.js:1:1234';
sourcemappedStacktrace.mapStackTrace(stack, function(mappedStack) {
  console.log(mappedStack.join('\n'));
});

Other packages similar to sourcemapped-stacktrace

FAQs

Package last updated on 27 Dec 2016

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