Skip to content

Easily decode stack traces generated from minified sources

License

Notifications You must be signed in to change notification settings

virtkick/source-map-resolver

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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
  });

About

Easily decode stack traces generated from minified sources

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published