Hacker News new | ask | show | jobs
by theodorejb 230 days ago
I would expect to be able to download a package and then inspect the code before I decide to import/run any of the package files. But npm by default will run arbitrary code in the package before developers have a chance to inspect it, which can be very surprising and dangerous.
1 comments

npm used to do that. bun never did. No idea about the past for pnpm or yarn.