
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
kill dead code
huge number of bugs still
Here is some simple code:
function f (n) {
return n + 2;
}
function g (n) {
return f(n) + 3;
}
function h (n) {
return g(n) * 111;
}
var obj = { h: h, f: f };
console.log(obj.f(4));
undead kills the unused static property lookups: (not yet implemented)
$ undead < example/main.js
function f (n) {
return n + 2;
}
console.log(f(4));
uglifyjs (2.4.0) isn't very good at optimizing this away, even though the property lookup is statically resolvable:
$ uglifyjs --wrap -cm < example/main.js
!function(n,t){function r(n){return n+2}function u(n){return r(n)+3}function o(n){return 111*u(n)}t["true"]=n;var f={h:o,f:r};console.log(f.f(4))}({},function(){return this}());
This is really useful for minifying browserify bundles:
$ browserify <(echo "require('util').inherits") | wc -c
87257
FAQs
kill dead code for minification
The npm package undead receives a total of 7 weekly downloads. As such, undead popularity was classified as not popular.
We found that undead 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.

Security News
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.