
Research
Security News
Malicious PyPI Package Exploits Deezer API for Coordinated Music Piracy
Socket researchers uncovered a malicious PyPI package exploiting Deezer’s API to enable coordinated music piracy through API abuse and C2 server control.
Before, you had to choose between sane debugging and sane load times. Now, you can have both.
Browserify in debug mode tacks on a massive sourceMappingURL with your uncompressed source code, on top of the already uncompressed bundle, resulting in a single massive Javascript file more than twice as large as your original source code.
Minifyify minifies your bundle and pulls the source map out into a separate file. Now you can deploy a minified bundle in production, and still have a sourcemap handy for when things inevitably break.
Bonus: Since Minifyify is a transform, dead code paths are removed before Browserify processes require()
s. You only get the modules you actually use in the final bundle. Works great with envify!
var browserify = require('browserify')
, minifyify = require('minifyify')
, bundle = new browserify()
, minifier;
// Create a new minifier object for each bundle
// (All options are optional, but highly recommended)
minifier = new minifyify({
source: 'bundle.js' // Where you intend to place the generated bundle
, map: 'bundle.map' // Where you intend to place the generated sourcemap
, transformPaths: // Great for shortening your source paths
function (filePath) {
// This will make all paths relative to 'project_dir'
return path.relative('project_dir', filePath);
}
});
bundle.add('entryScript.js');
// Note: Pass browserify the transformer, not the minifier object
bundle.transform(minifier.transformer);
// You *must* run in debug mode!
bundle.bundle({debug: true})
// Pipe to the consumer to receive your minified code and accompanying sourcemap
.pipe(minifier.consumer(function(code, map) {
fs.writeFileSync('www/bundle.js', code);
fs.writeFileSync('www/bundle.map', map);
}));
MIT
FAQs
Minify your browserify bundles without losing the sourcemap
The npm package minifyify receives a total of 4,907 weekly downloads. As such, minifyify popularity was classified as popular.
We found that minifyify demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer 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 uncovered a malicious PyPI package exploiting Deezer’s API to enable coordinated music piracy through API abuse and C2 server control.
Research
The Socket Research Team discovered a malicious npm package, '@ton-wallet/create', stealing cryptocurrency wallet keys from developers and users in the TON ecosystem.
Security News
Newly introduced telemetry in devenv 1.4 sparked a backlash over privacy concerns, leading to the removal of its AI-powered feature after strong community pushback.