Security News
Research
Data Theft Repackaged: A Case Study in Malicious Wrapper Packages on npm
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
broccoli-terser-sourcemap
Advanced tools
Broccoli filter to minify files with terser while preserving their sourcemaps.
A broccoli filter that applies terser to minify code while properly generating or maintaining sourcemaps.
npm install --save broccoli-terser-sourcemap
const Terser = require('broccoli-terser-sourcemap');
// basic usage
let minified = new Terser(input);
// advanced usage
let minified = new Terser(input, {
exclude: [..], // array of globs, to not minify
terser: {
mangle: false, // defaults to true
compress: false, // defaults to true
sourceMap: false, // defaults to true
//...
},
publicUrl: 'https://myamazingapp.com/', // value to be prepended to sourceMappingURL, defaults to ''
hiddenSourceMap: false, // skips adding the reference to sourcemap in the minified JS, defaults to false
concurrency: 3 // number of parallel workers, defaults to number of CPUs - 1
});
To disable parallelization:
$ JOBS=0
$ JOBS=1
FAQs
Broccoli filter to minify files with terser while preserving their sourcemaps.
The npm package broccoli-terser-sourcemap receives a total of 89,927 weekly downloads. As such, broccoli-terser-sourcemap popularity was classified as popular.
We found that broccoli-terser-sourcemap demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 3 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.
Security News
Research
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
Research
Security News
Attackers used a malicious npm package typosquatting a popular ESLint plugin to steal sensitive data, execute commands, and exploit developer systems.
Security News
The Ultralytics' PyPI Package was compromised four times in one weekend through GitHub Actions cache poisoning and failure to rotate previously compromised API tokens.