csmap

0.2.0 • Public • Published

Convert Stacks Traces to Source

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

Usage

  • Copy main.bundle.js.map somewhere.

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

  • Run the npx csmap script:

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

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.2.0
    1
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 0.2.0
    1
  • 0.1.0
    0

Package Sidebar

Install

npm i csmap

Weekly Downloads

1

Version

0.2.0

License

MIT

Unpacked Size

4.75 kB

Total Files

4

Last publish

Collaborators

  • ntotten