Command-line interface to the source-map
module.
npm install --global source-map-cli
The tool accepts source-map
commands to operate with source maps.
The resolve
command accepts a source map (either a path or a URL), a line and column and returns the original source file name, line and column, along with a context (usually the name of the variable or function).
$ source-map resolve bundle.js.map 1 28
Maps to source.js:2:10 (baz)
return baz(bar);
^
This module uses left-pad
. Use at your own risk.