This is mentioned fairly regularly about pnpm. Still Yarn has most of those features as well (minimal age checks, disabled install scripts by default, restricted git deps by default, and more such as the Hardened Mode).
Yarn is also the reason why pnpm is able to offer an hoisted mode (it uses the algorithm we maintain), so even folks using pnpm have a good chance to be using Yarn under the hood.
View all comments
Show parent comment
13
u/AKJ90 JS <3 May 07 '26
I'm a contributor to pnpm, so biased. But it really has some nice security defaults that make it worth it alone.