npm-upgrade
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.
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.
I would also see this as a great feature!
I have implemented it on my fork, I plan to submit a PR once I got some sleep ! 😉