Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
browserify-resolutions
Advanced tools
A Browserify plugin that allows more explicit control of module deduping. It purges duplicate modules from the output bundle and prevents modules from loading several times.
#browserify-resolutions Bower resolutions for npm + Browserify... sort of.
A Browserify plugin that allows more explicit control of module deduping. It purges duplicate modules from the output bundle and prevents modules from loading several times.
A large dependency tree may include multiple versions of the same module, which may result in it being bundled multiple times, greatly increasing the bundle's size.
npm dedupe
?It can be sufficient, but is sometimes hamstrung as third party modules may be asking for incompatible versions of the same library.
peerDependencies
?Hopefully solves this problem in the future, but currently difficult to work with: https://github.com/npm/npm/issues/6565
It currently only dedupes identical source files. Even if deduped, a library may be instantiated several times.
E.g., even if Angular is deduped and only bundled once, you may still see:
WARNING: Tried to load angular more than once.
Pass either an array of package names to dedupe or "*" to dedupe everything possible.
var resolutions = require('browserify-resolutions');
// Dedupe Angular
browserify(options)
.plugin(resolutions, ['angular'])
.bundle();
// Dedupe everything possible
browserify(options)
.plugin(resolutions, '*')
.bundle();
via Browserify CLI
browserify path-to-your-entry-file.js -p [ browserify-resolutions '*' ] -o path-to-your-destination.js
FAQs
A Browserify plugin that allows more explicit control of module deduping. It purges duplicate modules from the output bundle and prevents modules from loading several times.
The npm package browserify-resolutions receives a total of 68 weekly downloads. As such, browserify-resolutions popularity was classified as not popular.
We found that browserify-resolutions 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’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.