Pkg-Uninstaller is a lightweight and efficient VS Code extension that allows you to easily uninstall packages directly from your package.json file using the context menu. Simply select the package you want to remove, and uninstall it with a single click. Perfect for developers who want to quickly manage their dependencies without leaving the editor.
Features
Uninstall Multiple Packages: Select and uninstall multiple packages at once from your package.json.
Quick and Easy: No need to run terminal commands. Just right-click on the package name in your package.json and uninstall it directly.
Support for Multiple Package Managers: Currently supports npm, yarn, and pnpm, making it versatile for any project setup.
Context Menu Integration: Seamlessly integrates into the editor's context menu for easy access while working in your package.json.
Installation
Open VS Code.
Go to the Extensions view (Ctrl+Shift+X).
Search for Pkg-Uninstaller and click Install.
Alternatively, you can install it via the Marketplace by searching for Pkg-Uninstaller.
Usage
Uninstall a Single Package
Open your package.json file in VS Code.
Right-click on the package name you want to uninstall in the editor.
Select Uninstall Package from the context menu.
Uninstall Multiple Packages
Open your package.json file in VS Code.
Right-click anywhere in the editor.
Select Uninstall Packages from the context menu.
Choose the packages you want to uninstall from the quick pick list.
The selected packages will be uninstalled at once.
Supported Package Managers
npm
yarn
pnpm
bun
The extension automatically detects which package manager you're using based on your project's package.json.
Commands
Uninstall Package: Right-click any installed package in the package.json and choose this option to uninstall it.
Uninstall Packages: Right-click anywhere in the package.json and choose this option to uninstall multiple packages.
Development
To contribute to Pkg-Uninstaller, clone this repository and follow these steps: