Update NPM Dependencies is a Visual Studio Code extension designed to streamline the process of managing and updating dependencies in Node.js projects. It allows developers to easily check for outdated packages, select which to update, and automatically apply the changes—all from within VS Code.
Features
Check for Updates: Scans your package.json file to identify dependencies with newer versions available on npm.
Interactive Update Selection: Displays a checkbox list of outdated dependencies, allowing you to select which to update.
Automatic Updates:
Updates the selected dependencies' versions in package.json.
Executes npm update to install the new versions.
Progress Notifications:
Real-time progress indicators for tasks such as checking dependencies and updating packages.
How It Works
Open a Node.js project in Visual Studio Code with a valid package.json file.
Press Cmd+Shift+P (Mac) or Ctrl+Shift+P (Windows/Linux) to open the Command Palette.
Search for and select Update NPM Dependencies.
The extension will:
Check for outdated dependencies.
Show a checkbox list of dependencies with available updates.
Select the dependencies to update and click Update.
The extension will update the package.json file and synchronize the changes by running npm update.
Installation
Open the Extensions view in VS Code (Ctrl+Shift+X or Cmd+Shift+X).
Update NPM Dependencies (update-npm-dependencies.updateDependencies): Checks for updates and allows you to select and update outdated dependencies.
Requirements
A Node.js project with a package.json file.
npm must be installed and accessible in your system's PATH.
Feedback and Contributions
We welcome your feedback and contributions! If you encounter issues or have ideas for new features, please open an issue or submit a pull request on our GitHub repository.