stack-frame-mapper

0.4.0 • Public • Published

stack-frame-mapper

Maps a stack frame to a sourcemap.

API

map

Enhances a set of StackFrames with their original positions and code (when available).

Parameters

  • frames Array<StackFrame> A set of StackFrames which contain (generated) code positions.
  • contextLines number? The number of lines to provide before and after the line specified in the StackFrame. (optional, default 3)

Returns Promise<Array<StackFrame>>

/stack-frame-mapper/

    Package Sidebar

    Install

    npm i stack-frame-mapper

    Weekly Downloads

    24

    Version

    0.4.0

    License

    MIT

    Last publish

    Collaborators

    • timer