0.4.0 • Published 7 years ago

stack-frame-mapper v0.4.0

Weekly downloads
4
License
MIT
Repository
github
Last release
7 years ago

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? Optional. The number of lines to provide before and after the line specified in the StackFrame. (optional, default 3)

Returns Promise<Array<StackFrame>>