npm-upgrade icon indicating copy to clipboard operation
npm-upgrade copied to clipboard

[Feature] To help prevent downloading hijacked or broken packages, warn if the package has been released less than 72 hours ago.

Open tabarra opened this issue 2 years ago • 2 comments

Recently the ecosystem is getting quite a lot of packages hijacked.
One way I try to prevent using those packages is not updating to any version released less than 72 hours ago, which is time enough for the maintainers of any big package to realize what's up and unpublish the contaminated version on npm.

This could be also very useful for people that like to download only versions that have already passed the "real world smoke test".

I propose that on the update prompt, you warn if the package was released less than 72 (blue), 48 (yellow) or 24 (red) hours ago.

tabarra avatar Jun 26 '22 12:06 tabarra

I would also see this as a great feature!

ghost avatar Jun 26 '22 12:06 ghost

I have implemented it on my fork, I plan to submit a PR once I got some sleep ! 😉

IchiiDev avatar Jun 28 '22 00:06 IchiiDev