- License
- WTFPL
- Install Size
- 6.9 kB(4.4 MB)
- Vulns
- 0
- Published
Run
$
npx source-map-cli$
pnpm dlx source-map-cli$
yarn dlx source-map-cli$
bunx source-map-cli$
deno run npm:source-map-cli$
vlx source-map-cli$
vp dlx source-map-cliSource-map CLI
Command-line interface to the source-map module.
npm install --global source-map-cli
Usage
The tool accepts source-map commands to operate with source maps.
resolve [options] <uri> <line> <column>
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);
^
Context
Additional lines of context can be shown by including the --context [num] option.
Column marker
It is possible to prevent the column marker to be shown with the --no-marker option.