Tools to keep your NPM dependencies up-to-date
You can use the default npm commands npm outdated (check the registry to see if any packages are currently outdated) and npm update (update all the packages...
You can use the default npm commands npm outdated (check the registry to see if any packages are currently outdated) and npm update (update all the packages listed to the latest version, respecting the semver constraints of both your package and its dependencies).
# list packages respecting semvernpm outdated# update package.jsonnpm outdated --save# update and install packagesnpm update
But, to get a more detailed and prettier overview of the dependencies, you resort to the CLI tool 🥦 taze, which also works for monorepos.
# list packages respecting semvernpx taze# include major versionsnpx taze major# write to package.jsonnpx taze -w
The Visual Studio Code users among us can install the NPM extension to get a nice sidebar with the package information (and quick actions to update them). Just take a little glance at the sidebar to see if there are any updates available.
code --install-extension idered.npm --forcecode-insiders --install-extension idered.npm --force
Feel free to update this developer bit on GitHub, thanks in advance!