extend npm audit or create a new command to check for stale packages #169862
Replies: 1 comment
-
|
💬 Your Product Feedback Has Been Submitted 🎉 Thank you for taking the time to share your insights with us! Your feedback is invaluable as we build a better GitHub experience for all our users. Here's what you can expect moving forward ⏩
Where to look to see what's shipping 👀
What you can do in the meantime 💻
As a member of the GitHub community, your participation is essential. While we can't promise that every suggestion will be implemented, we want to emphasize that your feedback is instrumental in guiding our decisions and priorities. Thank you once again for your contribution to making GitHub even better! We're grateful for your ongoing support and collaboration in shaping the future of our platform. ⭐ |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Select Topic Area
Product Feedback
Body
Hello everyone.
So I worked on quite a number of projects (mostly vue related) and therefore used quite a number of npm packages.
I love the
npm auditcommand since that tells me which npm packages have vulnerabilities.However, I have a concern:
What about those old libraries that aren't in the focus of security testers anymore and are not actively maintained?
How do I even see those?
Well, one place to start is to use
npm outdated, but.... it only shows you libraries that have a new version available.So I created a little script (surely to be optimised) that finds libraries used in a given project that haven't been updated the past 6 months (intended to be used in a gitlab environment):
This somewhat works for me, but I noticed that while this script is simple, it has some drawbacks:
So I was wondering:
2. If looking for stale packages is valuable, why not do it in the npm audit command as well? Or a new one?
(That is also beneficial for npm, because doing it DIY might result in more traffic for npm)
User Story wording:
I, as a npm-using developer, want to know what projects are stale in the CLI and CI environment, so that I can know which packages to replace due to them becoming stale and unmaintained.
Beta Was this translation helpful? Give feedback.
All reactions