Research
Security News
Kill Switch Hidden in npm Packages Typosquatting Chalk and Chokidar
Socket researchers found several malicious npm packages typosquatting Chalk and Chokidar, targeting Node.js developers with kill switches and data theft.
@serveside/check-source-map
Advanced tools
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
This module can also be used programatically:
const csm = require('@serveside/check-source-map');
async function someMethod() {
const result = await csm.readLocalSourcemap({
source: './some_local_map.js.map',
line: 1,
column 134
});
console.log(result);
}
The result
would be the same values that are echoed out by the cli.
Can also run with the same parameters for csm.readRemoteSourcemap
.
FAQs
Unknown package
The npm package @serveside/check-source-map receives a total of 3 weekly downloads. As such, @serveside/check-source-map popularity was classified as not popular.
We found that @serveside/check-source-map demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
Security News
Socket researchers found several malicious npm packages typosquatting Chalk and Chokidar, targeting Node.js developers with kill switches and data theft.
Security News
pnpm 10 blocks lifecycle scripts by default to improve security, addressing supply chain attack risks but sparking debate over compatibility and workflow changes.
Product
Socket now supports uv.lock files to ensure consistent, secure dependency resolution for Python projects and enhance supply chain security.