source-map-stack
Source map stack traces.
Installation
$ npm install source-map-stack
Usage
var sourceMap = var content = fsvar map = sourceMaptry vm catche console console
API
.get(content)
content
- file contents with source map embedded
Returns: a SourceMapConsumer from mozilla's source-map
.stack(map, error, base)
map
- a source map consumererror
- the error whose stack will be mappedbase
- basepath of paths used in stack trace
Returns: a mapped stack trace
License
MIT