Socket
Socket
Sign inDemoInstall

metro-symbolicate

Package Overview
Dependencies
6
Maintainers
2
Versions
81
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

metro-symbolicate

🚇 A tool to find the source location from JS bundles and stack traces.


Version published
Weekly downloads
2.5M
increased by10.33%
Maintainers
2
Install size
8.84 MB
Created
Weekly downloads
 

Package description

What is metro-symbolicate?

The metro-symbolicate package is part of the Metro bundler (used by React Native) that provides functionality for symbolication. Symbolication is the process of converting machine code addresses back into human-readable source code locations (file names and line numbers). This is particularly useful for interpreting stack traces that are generated from minified or compiled code, making debugging much easier.

What are metro-symbolicate's main functionalities?

Symbolicating stack traces

This feature allows developers to pass a stack trace to the `symbolicateStackTrace` function, which returns a promise that resolves to a symbolicated stack trace. The symbolicated stack trace includes file names, line numbers, and even column numbers when available, making it easier to debug issues.

const symbolicateStackTrace = require('metro-symbolicate').symbolicateStackTrace;
symbolicateStackTrace(stackTrace).then(symbolicated => {
  console.log(symbolicated);
});

Other packages similar to metro-symbolicate

Keywords

FAQs

Last updated on 25 May 2023

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

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc