Skip to content

Latest commit

 

History

History
18 lines (14 loc) · 506 Bytes

README.md

File metadata and controls

18 lines (14 loc) · 506 Bytes

source-map-resolver

Easily decode stack traces generated from minified sources

Install

npm install source-map-resolver

Usage

let sourceMapResolve = require('source-map-resolver');

// stacktraceString is string, generated from new Error().stack
sourceMapResolve('./javascripts/application-2f037b638c.js.map', stacktraceString)
  .then(resolvedStack => {
    // resolvedStack is a string with frames referencing
    // application-2f037b638c.js resolved to the original sources
  });