Skip to content

garthtee/npm-package-updater

Repository files navigation

NPM Package Updater

VS Code Marketplace Version VS Code Marketplace Installs

Buy Me A Coffee


NPM Package Updater automatically checks for either the most up-to-date latest version of each dependency in your package.json file, or the latest minor or patch versions (both dependencies and devDependencies).

When you run the extension it will check if you'd like to create a backup of your package.json file. If you use git or another version control system you shouldn't need this.

Be sure to reinstall your packages once complete by running npm install or yarn install in your terminal.

Features

The following commands can be accessed from the VSCode Command Palette.

Update Latest Majors

Run this command to get the most up-to-date version of all your packages.

Shortcuts:

  • Windows/Linux: ctrl+alt+u
  • macOS: ctrl+option+u

Update Latest Minors

Run this command to get the most up-to-date minor and patch versions of all of your packages.

Shortcuts:

  • Windows/Linux: ctrl+alt+m
  • macOS: ctrl+option+m

Update Latest Patches

Run this command to get the most up-to-date patch (non-breaking) versions of all of your packages.

Shortcuts:

  • Windows/Linux: ctrl+alt+p
  • macOS: ctrl+option+p

See it in action here:

Usage

Settings

Indentation size & type

This extension allows for customisable indentation types of your package.json. Whether you prefer tabs or spaces it's your decision 😉 Look for the Npm Package Updater: Indentation Size & Npm Package Updater: Indentation Type settings.

Registry

Update the registry used for fetching package details. You can use a registry different to the standard NPM one (which is set by default). For example if you're working for an organisation that has it's own registry. Look for the Npm Package Updater: Registry setting.

Useful links

Semantic Versioning explanation.