check-source-map 1.0.0
Install from the command line:
Learn more about npm packages
$ npm install @serveside/check-source-map@1.0.0
Install via package.json:
"@serveside/check-source-map": "1.0.0"
About this version
npx @serveside/check-source-map <sourcemap-filename> -l <line-number> -c <column-number>
Read a sourcemap file given a line number and column number and return the line/column of the same in the source code:
For example:
$ npx @serveside/check-source-map ~/dist/prod.b6e7359deed79be25536.js.map -l 2 -c 106543
{
source: 'webpack://my-project/node_modules/some-module/some-file.js',
line: 158,
column: 52,
name: 'someMethodName'
}
Add the -r
flag to the command
For example:
$ npx @serveside/check-source-map https://some-website.example.com/js/prod.b6e7359deed79be25536.js.map -l 2 -c 106543 -r
{
source: 'webpack://my-project/node_modules/some-module/some-file.js',
line: 158,
column: 52,
name: 'someMethodName'
}
Run:
npm i -g @serveside/check-source-map
Then can run s-csm
instead of npx @serveside/check-source-map