Interactive CLI tool for managing package dependencies: outdated, unused, and bulk actions

Hey everyone,

I’m looking for a command-line tool that can help me manage my project dependencies more efficiently. I’ve heard about something called npm-check-extras, but I’m not sure if it’s the right fit. Here’s what I need:

  1. A way to find outdated packages
  2. Identify unused dependencies
  3. An interactive interface to select multiple packages
  4. Ability to update or remove selected packages in bulk

Does anyone know of a good tool that can do all this? I’m tired of manually checking and updating each package one by one. It would be great if it works with npm and has a text-based user interface.

Thanks in advance for any suggestions!

I’ve been in your shoes, and I can tell you that ‘depcheck’ combined with ‘npm-upgrade’ has been my go-to solution. Depcheck is fantastic for identifying unused dependencies - it scans your codebase and flags packages that aren’t being imported anywhere. As for updating and managing outdated packages, npm-upgrade has been a lifesaver.

It provides an interactive CLI where you can see all your outdated packages at a glance, select multiple ones, and update them in bulk. The interface is straightforward and text-based, perfect for command-line enthusiasts.

To use them together, I typically run depcheck first to clean up unused packages, then use npm-upgrade to handle the rest. It’s not a single tool solution, but this combo has streamlined my dependency management process significantly. Give it a try - it might just be the workflow you’re looking for.

I’ve been using ‘npm-check’ for a while now, and it’s been a real game-changer for managing dependencies. It ticks all the boxes you’ve mentioned. It provides an interactive CLI that shows outdated, unused, and incorrectly versioned dependencies. You can select multiple packages at once and perform bulk actions like updating or removing them.

The interactive interface is quite intuitive. It color-codes packages based on their status and provides helpful information about each dependency. It works seamlessly with npm and doesn’t require any additional setup.

To get started, just install it globally with ‘npm install -g npm-check’ and then run ‘npm-check’ in your project directory. It’s been a huge time-saver for me, especially when working on larger projects with numerous dependencies.

yo, try out ‘npm-check-updates’ (ncu). it’s pretty sweet for what u need. finds outdated stuff, shows unused deps, and lets u pick multiple packages to update at once. just run ‘ncu -i’ for the interactive mode. it’s been a lifesaver for me, srsly. give it a shot!