Latest Threat Research:SANDWORM_MODE: Shai-Hulud-Style npm Worm Hijacks CI Workflows and Poisons AI Toolchains.Details
Socket
Book a DemoInstallSign in
Socket

csmap

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

csmap

Converts a stacktrace using a sourcemap.

Source
npmnpm
Version
0.1.0
Version published
Maintainers
1
Created
Source

convert-sourcemap-stacktrace

Uses a source map to convert a stack trace from running bundled / minified JavaScript code into the original stack trace.

Install

yarn add -D convert-sourcemap-stacktrace

Usage

  • Copy main.bundle.js.map somewhere.

  • Create a stacktrace.txt file containing the stack trace to convert.

  • Run the convert-sourcemap-stacktrace script:

yarn convert-sourcemap-stacktrace --stack path/to/stacktrace.txt --source-map path/to/main.bundle.js.map
  • If the bundle / minified file has another name:
yarn convert-sourcemap-stacktrace --bundle-name {your_bundle_name} --stack path/to/stacktrace.txt --source-map path/to/{your_bundle_name}
  • For more information:
yarn convert-sourcemap-stacktrace --help

Keywords

stacktrace

FAQs

Package last updated on 10 Mar 2022

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